From 8d71420b4511fdac63c39f33d93c7add1ea7716d Mon Sep 17 00:00:00 2001 From: Marc Abonce Seguin Date: Mon, 29 Jul 2019 21:25:05 -0700 Subject: [mod] separate index and search routes This makes it easier to separately handle search and index requests from a web server or from a reverse proxy. If a request to index contains a query, a permanent redirect HTTP response is returned. This should give some level of backwards compatibility for users that have set a searx instance in their browser's search bar. --- searx/templates/__common__/opensearch.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/templates/__common__/opensearch.xml') diff --git a/searx/templates/__common__/opensearch.xml b/searx/templates/__common__/opensearch.xml index e76a14aff..2476258c0 100644 --- a/searx/templates/__common__/opensearch.xml +++ b/searx/templates/__common__/opensearch.xml @@ -6,9 +6,9 @@ {{ urljoin(host, url_for('static', filename='img/favicon.png')) }} searx metasearch {% if opensearch_method == 'get' %} - + {% else %} - + {% endif %} -- cgit v1.2.3