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/legacy/infobox.html | 2 +- searx/templates/legacy/results.html | 12 ++++++------ searx/templates/legacy/search.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'searx/templates/legacy') diff --git a/searx/templates/legacy/infobox.html b/searx/templates/legacy/infobox.html index 4dd25fabd..70f3b12d3 100644 --- a/searx/templates/legacy/infobox.html +++ b/searx/templates/legacy/infobox.html @@ -36,7 +36,7 @@

{{ topic.name }}

{% for suggestion in topic.suggestions %} -
+
diff --git a/searx/templates/legacy/results.html b/searx/templates/legacy/results.html index fd95657a4..efff0667a 100644 --- a/searx/templates/legacy/results.html +++ b/searx/templates/legacy/results.html @@ -1,6 +1,6 @@ {% extends "legacy/base.html" %} {% block title %}{{ q|e }} - {% endblock %} -{% block meta %}{% endblock %} +{% block meta %}{% endblock %} {% block content %}