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_response_rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/templates/__common__/opensearch_response_rss.xml') diff --git a/searx/templates/__common__/opensearch_response_rss.xml b/searx/templates/__common__/opensearch_response_rss.xml index 686443c49..82d3f7c4e 100644 --- a/searx/templates/__common__/opensearch_response_rss.xml +++ b/searx/templates/__common__/opensearch_response_rss.xml @@ -4,7 +4,7 @@ xmlns:atom="http://www.w3.org/2005/Atom"> Searx search: {{ q|e }} - {{ base_url }}?q={{ q|e }} + {{ url_for('search', _external=True) }}?q={{ q|e }} Search results for "{{ q|e }}" - searx {{ number_of_results }} 1 -- cgit v1.2.3