From c2e4b99d39b0e0bf36c8c79c68ead33a0b60a3e7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 1 Sep 2022 21:24:06 +0200 Subject: [PATCH] replace '/logged_out' from redir value --- files/routes/errors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/errors.py b/files/routes/errors.py index 89f7da9fe..54f9f5923 100644 --- a/files/routes/errors.py +++ b/files/routes/errors.py @@ -18,7 +18,8 @@ def error_401(e): else: path = request.path qs = urlencode(dict(request.values)) - argval = quote(f"{path}?{qs}", safe='') + argval = quote(f"{path}?{qs}", safe='').replace('/logged_out','') + if not argval: argval = '/' if session.get("history"): return redirect(f"/login?redirect={argval}") else: return redirect(f"/signup?redirect={argval}")