From 7c075227d790f0dbbe748c488cba5d30529c043f Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 11 Jul 2021 17:17:29 +0200 Subject: [PATCH] Don't visit index after login or logout --- web_view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_view.py b/web_view.py index 4679199..fcad642 100755 --- a/web_view.py +++ b/web_view.py @@ -387,7 +387,7 @@ def logout(): @app.route('/done/') def done(): flash('login successful') - return redirect(url_for('index')) + return redirect(url_for('map_start_page')) @app.route('/oauth/start') def start_oauth(): @@ -462,7 +462,7 @@ def oauth_callback(): database.session.commit() flask_login.login_user(user) - next_page = session.get('next') or url_for('index_page') + next_page = session.get('next') or url_for('map_start_page') return redirect(next_page)