diff options
author | Alexandre Flament <alex@al-f.net> | 2020-10-05 15:38:05 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-10-06 00:54:37 +0200 |
commit | bfdad7bc0f867f67675c1d8c539c58e82f450c58 (patch) | |
tree | cf583c06d5f2b7cfb62626efac76bc4644788e14 /searx/templates/oscar/base.html | |
parent | 584760cf5419051bd3f37e733147e048356f7ffc (diff) | |
download | searxng-bfdad7bc0f867f67675c1d8c539c58e82f450c58.tar.gz searxng-bfdad7bc0f867f67675c1d8c539c58e82f450c58.zip |
[fix] opensearch.xml URL contains method and autocomplete parameters
When the user add searx as a search engine, the browser loads the /opensearch.xml URL without the cookies.
Without the query parameters, the user preferences are ignored (method and autocomplete).
In addition, opensearch.xml is modified to support automatic updates,
see https://developer.mozilla.org/en-US/docs/Web/OpenSearch
Diffstat (limited to 'searx/templates/oscar/base.html')
-rw-r--r-- | searx/templates/oscar/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html index a3bfa5249..7b3d33f7a 100644 --- a/searx/templates/oscar/base.html +++ b/searx/templates/oscar/base.html @@ -37,7 +37,7 @@ {% block head %} {% endblock %} - <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/> + <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/> <noscript> <style type="text/css"> .tab-content > .active_if_nojs, .active_if_nojs {display: block !important; visibility: visible !important;} |