Skip to content

Commit

Permalink
Use window from Endpoint enum for anon view (#748)
Browse files Browse the repository at this point in the history
Removes previously hardcoded "/window" from anon view links
  • Loading branch information
invis-z authored May 10, 2022
1 parent 194ddc3 commit 0f6226c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f6226c

Please sign in to comment.