From a749a7eea971b2f4b680d7cf4d1e3a93c70e204e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 26 May 2022 01:43:42 +0200 Subject: [PATCH] fds --- files/routes/front.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index f4de94527..545dd2b60 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -169,7 +169,10 @@ def notifications(v): @auth_desired def front_all(v, sub=None, subdomain=None): - if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.path}") + if not v and not request.path.startswith('/logged_out'): + r = request.full_path + if r == '/?': r = '/' + return redirect(f"/logged_out{r}") if v and request.path.startswith('/logged_out'): return redirect(request.full_path.replace('/logged_out','')) if sub: sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none()