[fix] redirect when saving preferences

Erroneously commit 87e4c4762 droped the 302 redirect.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-04-12 15:29:08 +02:00
parent 6c0114567e
commit 2bf297b19f
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ def preferences():
# save preferences # save preferences
if request.method == 'POST': if request.method == 'POST':
resp = make_response(url_for('index', _external=True)) resp = make_response(redirect(url_for('index', _external=True)))
try: try:
request.preferences.parse_form(request.form) request.preferences.parse_form(request.form)
except ValidationException: except ValidationException: