diff options
author | Markus Heiser <markus.heiser@darmarIT.de> | 2020-06-19 04:51:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 04:51:29 +0000 |
commit | 1db37a0cc3622ce791851ebeb3db814c0a1f0c61 (patch) | |
tree | 3ca2436c9cae27ee3232cb362462d26e1e6effa9 /searx/templates | |
parent | 59739a44dbdcb59d8b45e25b907aa5761ca88e49 (diff) | |
parent | c83007a6bcd2a7f765e7655b91cc6714fbc4ab01 (diff) | |
download | searxng-1db37a0cc3622ce791851ebeb3db814c0a1f0c61.tar.gz searxng-1db37a0cc3622ce791851ebeb3db814c0a1f0c61.zip |
Merge branch 'master' into about-opensearch
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/__common__/opensearch.xml | 20 |
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> |