diff --git a/files/routes/front.py b/files/routes/front.py index cdfbab75b..8e7be2ba5 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -131,7 +131,7 @@ def front_all(v): if not v and not request.headers.get("Authorization"): if g.system == "mobile" and '/mobile' not in request.path: return redirect(f"/logged_out/mobile{request.full_path.replace('/logged_out','')}") - elif g.system == "desktop" and "/logged_out" not in request.path: return redirect(f"/logged_out{request.full_path}") + elif g.system == "desktop" and "/logged_out" not in request.path: return redirect(f"/logged_out{request.full_path.replace('/mobile','')}") if v and v.is_banned and not v.unban_utc: return render_template('errors/500.html', error=True, v=v), 500