Browse Source

add trailing slashes to canonical paths

Nick Sweeting 4 years ago
parent
commit
1ce0eca217
1 changed files with 3 additions and 3 deletions
  1. 3 3
      archivebox/index/schema.py

+ 3 - 3
archivebox/index/schema.py

@@ -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',
-            'media_path': 'media',
+            'git_path': 'git/',
+            '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.