diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-04-12 16:02:16 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-04-12 16:02:16 +0200 |
commit | c4793afadcabe3c4560afb5179f92c6c440d4c5e (patch) | |
tree | 67ca213d6d37c2157eb0e6a48fb653b65f1e4374 /searx | |
parent | 2bf297b19ffe00415f5d9b36d66dd6b24f5bb58d (diff) | |
download | searxng-c4793afadcabe3c4560afb5179f92c6c440d4c5e.tar.gz searxng-c4793afadcabe3c4560afb5179f92c6c440d4c5e.zip |
[fix] https-scheme missing in preferences-page
This patch is an addition to PR #2656 which removed all usage of `base_url` from
the templates, except one was forgotten in the cookie URL of the preferences.
closes: 2740
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx')
-rw-r--r-- | searx/templates/oscar/preferences.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 3f9192e22..2602c19d9 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -368,7 +368,7 @@ </p> <div class="tab-pane"> - <input readonly="" class="form-control select-all-on-click cursor-text" type="url" value="{{ base_url }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}"> + <input readonly="" class="form-control select-all-on-click cursor-text" type="url" value="{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}"> <input type="submit" class="btn btn-primary" value="{{ _('save') }}" /> <a href="{{ url_for('index') }}"><div class="btn btn-default">{{ _('back') }}</div></a> <a href="{{ url_for('clear_cookies') }}"><div class="btn btn-default">{{ _('Reset defaults') }}</div></a> |