mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
syntax error
This commit is contained in:
parent
f0c7a6f558
commit
59dbf725a6
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ def calculate_archive_url(link):
|
||||||
else:
|
else:
|
||||||
# .html needs to be appended
|
# .html needs to be appended
|
||||||
without_scheme = split_url[0].split('://', 1)[-1]
|
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 + 'index.html', *split_url[1:]])
|
||||||
return '#'.join([without_scheme + '.html', *split_url[1:]])
|
return '#'.join([without_scheme + '.html', *split_url[1:]])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue