diff options
| author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2019-07-29 21:25:05 -0700 |
|---|---|---|
| committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2020-11-02 20:04:03 -0700 |
| commit | 8d71420b4511fdac63c39f33d93c7add1ea7716d (patch) | |
| tree | 14f3e1e9cf815cf5cc301fb1699cd54816adfc25 /searx/templates/courgette/search.html | |
| parent | 45f58a4a2a0b89f4b416c28ea769139b16f6436d (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/courgette/search.html')
| -rw-r--r-- | searx/templates/courgette/search.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/courgette/search.html b/searx/templates/courgette/search.html index fe70fde05..89daead89 100644 --- a/searx/templates/courgette/search.html +++ b/searx/templates/courgette/search.html @@ -1,7 +1,7 @@ -<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" id="search_form"> +<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}" id="search_form"> <div id="search_wrapper"> <input type="text" autofocus placeholder="{{ _('Search for...') }}" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/> <input type="submit" value="search" id="search_submit" /> </div> {% include 'courgette/categories.html' %} -</form>
\ No newline at end of file +</form> |