This commit is contained in:
Aevann1 2022-02-11 20:44:12 +02:00
parent 589d028b20
commit 19f8c863ac
5 changed files with 8 additions and 8 deletions

View file

@ -39,7 +39,7 @@ def marsey_list():
@auth_desired
def terms(v):
if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
if v and request.path.startswith('/logged_out'): v = None
if v and request.path.startswith('/logged_out'): return redirect(SITE_FULL + request.full_path.replace('/logged_out',''))
return render_template("terms.html", v=v)
@ -48,7 +48,7 @@ def terms(v):
@auth_desired
def sidebar(v):
if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
if v and request.path.startswith('/logged_out'): v = None
if v and request.path.startswith('/logged_out'): return redirect(SITE_FULL + request.full_path.replace('/logged_out',''))
return render_template('sidebar.html', v=v)