From 0f6226ce51f08747eef1c45e0acfe5cb94e69b69 Mon Sep 17 00:00:00 2001 From: invis-z <22781620+invis-z@users.noreply.github.com> Date: Wed, 11 May 2022 06:06:57 +0800 Subject: [PATCH] Use `window` from Endpoint enum for anon view (#748) Removes previously hardcoded "/window" from anon view links --- app/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 7802828..5b73251 100644 --- a/app/routes.py +++ b/app/routes.py @@ -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