diff options
author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2019-07-01 19:52:34 -0500 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2019-07-01 19:52:34 -0500 |
commit | 6626f013656d39bc90d179e6706825552a8e588d (patch) | |
tree | c87a6874ea05d277a40e4f6539d2141b4b9ca38d /searx/templates | |
parent | 40272b0044a2ef520ff9c3fb3513c5a340663f22 (diff) | |
download | searxng-6626f013656d39bc90d179e6706825552a8e588d.tar.gz searxng-6626f013656d39bc90d179e6706825552a8e588d.zip |
[fix] preserve bangs in suggestions and corrections
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/oscar/results.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index ee1052dba..3a1f84067 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -21,7 +21,7 @@ <span class="result_header text-muted form-inline pull-left suggestion_item">{{ _('Try searching for:') }}</span>
{% for correction in corrections %}
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-left suggestion_item">
- <input type="hidden" name="q" value="{{ correction }}">
+ <input type="hidden" name="q" value="{{ query_prefix + correction }}">
<button type="submit" class="btn btn-default btn-xs">{{ correction }}</button>
</form>
{% endfor %}
@@ -118,7 +118,7 @@ <div class="panel-body">
{% for suggestion in suggestions %}
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} suggestion_item">
- <input type="hidden" name="q" value="{{ suggestion }}">
+ <input type="hidden" name="q" value="{{ query_prefix + suggestion }}">
<button type="submit" class="btn btn-default btn-xs">{{ suggestion }}</button>
</form>
{% endfor %}
|