add trailing slashes to canonical paths

This commit is contained in:
Nick Sweeting 2021-01-30 05:35:29 -05:00
parent 6edae6a17f
commit 1ce0eca217

View file

@ -417,7 +417,7 @@ class Link:
'favicon_path': 'favicon.ico', 'favicon_path': 'favicon.ico',
'google_favicon_path': 'https://www.google.com/s2/favicons?domain={}'.format(self.domain), 'google_favicon_path': 'https://www.google.com/s2/favicons?domain={}'.format(self.domain),
'wget_path': wget_output_path(self), 'wget_path': wget_output_path(self),
'warc_path': 'warc', 'warc_path': 'warc/',
'singlefile_path': 'singlefile.html', 'singlefile_path': 'singlefile.html',
'readability_path': 'readability/content.html', 'readability_path': 'readability/content.html',
'mercury_path': 'mercury/content.html', 'mercury_path': 'mercury/content.html',
@ -425,8 +425,8 @@ class Link:
'screenshot_path': 'screenshot.png', 'screenshot_path': 'screenshot.png',
'dom_path': 'output.html', 'dom_path': 'output.html',
'archive_org_path': 'https://web.archive.org/web/{}'.format(self.base_url), 'archive_org_path': 'https://web.archive.org/web/{}'.format(self.base_url),
'git_path': 'git', 'git_path': 'git/',
'media_path': 'media', 'media_path': 'media/',
} }
if self.is_static: if self.is_static:
# static binary files like PDF and images are handled slightly differently. # static binary files like PDF and images are handled slightly differently.