mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 15:44:26 -04:00
fix: Partially restore server
command functionality (html still needs some refactoring)
This commit is contained in:
parent
e95f14d1d0
commit
15d88be229
3 changed files with 66 additions and 29 deletions
|
@ -61,7 +61,7 @@ class LinkDetails(View):
|
|||
by_ts = {page.timestamp: page for page in all_pages}
|
||||
try:
|
||||
# print('SERVING STATICFILE', by_ts[slug].link_dir, request.path, path)
|
||||
response = static.serve(request, archivefile, document_root=by_ts[slug].link_dir, show_indexes=True)
|
||||
response = static.serve(request, archivefile, document_root=by_ts[slug].snapshot_dir, show_indexes=True)
|
||||
response["Link"] = f'<{by_ts[slug].url}>; rel="canonical"'
|
||||
return response
|
||||
except KeyError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue