Bug fix for redirect after logout

This commit is contained in:
Edward Betts 2021-07-08 14:34:55 +02:00
parent 43e11cdfba
commit 4ebe992919

View file

@ -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)