From 809c02fae121c4f098433f1812ec271f1c6a7b90 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 13 Aug 2021 23:11:55 +0200 Subject: [PATCH] fddf --- files/routes/login.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/login.py b/files/routes/login.py index fb5198bb2..7482d6879 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -125,7 +125,8 @@ def login_post(): # check for previous page redir = request.form.get("redirect", "/") - if "logged_out" not in redir: return redirect(redir) + if "/logged_out" not in redir: return redirect(redir) + else: return redirect(redir.replace("/logged_out", "")) @app.get("/me")