replace '/logged_out' from redir value

master
Aevann1 2022-09-01 21:24:06 +02:00
parent 259e31de7d
commit c2e4b99d39
1 changed files with 2 additions and 1 deletions

View File

@ -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}")