fix: Partially restore server command functionality (html still needs some refactoring)

This commit is contained in:
Cristian 2021-01-04 09:14:02 -05:00
parent e95f14d1d0
commit 15d88be229
3 changed files with 66 additions and 29 deletions

View file

@ -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: