Fix link in window

This commit is contained in:
Z 2022-05-05 21:16:01 +08:00
parent 194ddc33f3
commit c61028c7ea

View File

@ -520,7 +520,7 @@ def window():
# Use anonymous view for all links on page
for a in results.find_all('a', {'href': True}):
a['href'] = '/window?location=' + a['href'] + (
a['href'] = f'{Endpoint.window}?location=' + a['href'] + (
'&nojs=1' if 'nojs' in request.args else '')
# Remove all iframes -- these are commonly used inside of <noscript> tags