From d8414ba117994f8f29380054e609635b3fc68bf9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 28 Dec 2021 08:53:06 +0200 Subject: [PATCH] sdf --- files/routes/front.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index b098e8c48..546d24d43 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -129,9 +129,9 @@ def front_all(v): session.permanent = True if not session.get("session_id"): session["session_id"] = secrets.token_hex(49) - if not v and request.path == "/" and not request.headers.get("Authorization"): - if g.system == "mobile": return redirect(f"/logged_out/mobile{request.full_path}") - return redirect(f"/logged_out{request.full_path}") + if not v and not request.headers.get("Authorization"): + if g.system == "mobile" and request.path != "/logged_out/mobile/": return redirect(f"/logged_out/mobile{request.full_path.replace('logged_out/','')}") + elif g.system == "desktop" and request.path != "/logged_out/": return redirect(f"/logged_out{request.full_path}") if v and v.is_banned and not v.unban_utc: return render_template('errors/500.html', error=True, v=v), 500