summaryrefslogtreecommitdiff
path: root/searx/templates/__common__/opensearch_response_rss.xml
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2019-07-29 21:25:05 -0700
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2020-11-02 20:04:03 -0700
commit8d71420b4511fdac63c39f33d93c7add1ea7716d (patch)
tree14f3e1e9cf815cf5cc301fb1699cd54816adfc25 /searx/templates/__common__/opensearch_response_rss.xml
parent45f58a4a2a0b89f4b416c28ea769139b16f6436d (diff)
[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.
Diffstat (limited to 'searx/templates/__common__/opensearch_response_rss.xml')
-rw-r--r--searx/templates/__common__/opensearch_response_rss.xml2
1 files changed, 1 insertions, 1 deletions
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">
<channel>
<title>Searx search: {{ q|e }}</title>
- <link>{{ base_url }}?q={{ q|e }}</link>
+ <link>{{ url_for('search', _external=True) }}?q={{ q|e }}</link>
<description>Search results for "{{ q|e }}" - searx</description>
<opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>
<opensearch:startIndex>1</opensearch:startIndex>