mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[feat] preferences hash: show applied settings in pref page when searching with 'search url of the currently saved preferences'
Previously, when using a search url copied from the cookies tab, clicking at the settings icon at the top right would show the browser preferences and not the preferences that were set and used with the search url. Please see https://github.com/searxng/searxng/issues/5227 for more information. To test: - change some preferences - copy the preferences search url in the settings' cookies tab - reset the preferences or clear cookies - paste the copied search url into the search bar to search for something - press the settings icon - you can now see/preview the actual settings that were used for the search - by pressing 'save', you can keep these preferences closes #5227
This commit is contained in:
@@ -155,6 +155,16 @@
|
||||
|
||||
<h1>{{ _('Preferences') }}</h1>
|
||||
|
||||
{%- if request.args.get('preferences_preview_only') == 'true' -%}
|
||||
<div class="dialog-warning-block">
|
||||
<p>{{ _("This is a preview of the settings used by the 'Search URL' you used to get here.") }}</p>
|
||||
<ul>
|
||||
<li>{{ _('Press save to copy these preferences to your browser.') }}</li>
|
||||
<li>{{ _('Click here to view your browser preferences instead:') }} <a href="{{ url_for('preferences') }}">/preferences</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
|
||||
<form id="search_form" method="post" action="{{ url_for('preferences') }}" autocomplete="off">
|
||||
{{- tabs_open() -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user