on master help sign in
[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>

commitc4793afadcabe3c4560afb5179f92c6c440d4c5e authorMarkus Heiser <markus.heiser@darmarit.de> dateMon 12 Apr 2021, 16:02 (6 years ago) parent2bf297b
1 file changed+1−1
searx/templates/oscar/preferences.html+1−1
searx/templates/oscar/preferences.html+1−1
@@ -368,7 +368,7 @@
368368 </p>
369369
370370 <div class="tab-pane">
371− <input readonly="" class="form-control select-all-on-click cursor-text" type="url" value="{{ base_url }}?preferences={{ preferences_url_params|e }}{% raw %}&amp;q=%s{% endraw %}">
371+ <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 %}&amp;q=%s{% endraw %}">
372372 <input type="submit" class="btn btn-primary" value="{{ _('save') }}" />
373373 <a href="{{ url_for('index') }}"><div class="btn btn-default">{{ _('back') }}</div></a>
374374 <a href="{{ url_for('clear_cookies') }}"><div class="btn btn-default">{{ _('Reset defaults') }}</div></a>