summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorJulian Fairfax <juliannfairfax@protonmail.com>2022-05-14 14:12:55 +0200
committerJulian Fairfax <juliannfairfax@protonmail.com>2022-05-15 20:34:04 +0200
commit7d443dfea389d8bfaaa90142d3c1a6c1a068d5a9 (patch)
treed23b87b287fcb141947339b1f889fd60d8d33631 /searx/webapp.py
parentde0c4d7cd8bf598d8ec69834f806a3dc80326ad6 (diff)
downloadsearxng-7d443dfea389d8bfaaa90142d3c1a6c1a068d5a9.tar.gz
searxng-7d443dfea389d8bfaaa90142d3c1a6c1a068d5a9.zip
Preferences URL in preferences
Revert translation changes Auto-save preferences from URL Preferences URL in preferences Fix that Preferences URL in preferences
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 7eca07753..86de88407 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -971,6 +971,11 @@ def preferences():
# pylint: disable=too-many-locals, too-many-return-statements, too-many-branches
# pylint: disable=too-many-statements
+ # save preferences using the link the /preferences?preferences=...&save=1
+ if request.args.get('save') == '1':
+ resp = make_response(redirect(url_for('index', _external=True)))
+ return request.preferences.save(resp)
+
# save preferences
if request.method == 'POST':
resp = make_response(redirect(url_for('index', _external=True)))