summaryrefslogtreecommitdiff
path: root/searx/templates/courgette/base.html
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-10-05 15:38:05 +0200
committerAlexandre Flament <alex@al-f.net>2020-10-06 00:54:37 +0200
commitbfdad7bc0f867f67675c1d8c539c58e82f450c58 (patch)
treecf583c06d5f2b7cfb62626efac76bc4644788e14 /searx/templates/courgette/base.html
parent584760cf5419051bd3f37e733147e048356f7ffc (diff)
[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/courgette/base.html')
-rw-r--r--searx/templates/courgette/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/courgette/base.html b/searx/templates/courgette/base.html
index f4c61dac2..468b817c5 100644
--- a/searx/templates/courgette/base.html
+++ b/searx/templates/courgette/base.html
@@ -22,7 +22,7 @@
{% endblock %}
{% block meta %}{% endblock %}
{% block head %}
- <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 }}"/>
{% endblock %}
<script type="text/javascript">
searx = {};