1
0
Fork 0
mirror of synced 2024-06-26 18:10:24 +12:00

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