From 4ebe99291904c3f46ae834d70a91a5a805333787 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 8 Jul 2021 14:34:55 +0200 Subject: [PATCH] Bug fix for redirect after logout --- web_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_view.py b/web_view.py index eb2cc09..9b7799d 100755 --- a/web_view.py +++ b/web_view.py @@ -396,7 +396,7 @@ def login_openstreetmap(): @app.route('/logout') def logout(): - next_url = request.args.get('next') or url_for('index') + next_url = request.args.get('next') or url_for('map_start_page') flask_login.logout_user() flash('you are logged out') return redirect(next_url)