summaryrefslogtreecommitdiff
path: root/searx/templates/__common__/opensearch.xml
diff options
context:
space:
mode:
authorNoémi Ványi <kvch@users.noreply.github.com>2020-06-28 20:28:12 +0200
committerGitHub <noreply@github.com>2020-06-28 20:28:12 +0200
commit93cbd85b8a5becdf69e6d70dd7c60f7122531262 (patch)
tree90d202af89e02fc3e83d5bdf4a924b05ff197261 /searx/templates/__common__/opensearch.xml
parent385e9b5c9e2d1caa73f99dac0bf1be1c46505121 (diff)
parentf9f5974968ce767c24eea8c8a651d0e3945fc01b (diff)
Merge branch 'master' into duckduckgo_correction
Diffstat (limited to 'searx/templates/__common__/opensearch.xml')
-rw-r--r--searx/templates/__common__/opensearch.xml20
1 files changed, 5 insertions, 15 deletions
diff --git a/searx/templates/__common__/opensearch.xml b/searx/templates/__common__/opensearch.xml
index 15d3eb792..27634245f 100644
--- a/searx/templates/__common__/opensearch.xml
+++ b/searx/templates/__common__/opensearch.xml
@@ -6,23 +6,13 @@
<Image>{{ urljoin(host, url_for('static', filename='img/favicon.png')) }}</Image>
<LongName>searx metasearch</LongName>
{% if opensearch_method == 'get' %}
- <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
- {% if autocomplete %}
- <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">
- <Param name="format" value="x-suggestions" />
- <Param name="q" value="{searchTerms}" />
- </Url>
- {% endif %}
+ <Url rel="results" type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
{% else %}
- <Url type="text/html" method="post" template="{{ host }}">
+ <Url rel="results" type="text/html" method="post" template="{{ host }}">
<Param name="q" value="{searchTerms}" />
</Url>
- {% if autocomplete %}
- <!-- TODO, POST REQUEST doesn't work -->
- <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">
- <Param name="format" value="x-suggestions" />
- <Param name="q" value="{searchTerms}" />
- </Url>
- {% endif %}
+ {% endif %}
+ {% if autocomplete %}
+ <Url rel="suggestions" type="application/json" template="{{ host }}autocompleter"/>
{% endif %}
</OpenSearchDescription>