mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-03 09:25:42 +10:00
syntax error
This commit is contained in:
@@ -339,7 +339,7 @@ def calculate_archive_url(link):
|
||||
else:
|
||||
# .html needs to be appended
|
||||
without_scheme = split_url[0].split('://', 1)[-1]
|
||||
if url.endswith('/'):
|
||||
if without_scheme.endswith('/'):
|
||||
return '#'.join([without_scheme + 'index.html', *split_url[1:]])
|
||||
return '#'.join([without_scheme + '.html', *split_url[1:]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user