diff options
author | Dalf <alex@al-f.net> | 2019-07-16 16:27:29 +0200 |
---|---|---|
committer | Dalf <alex@al-f.net> | 2019-07-17 09:05:29 +0200 |
commit | c7220b40ead8c53b21e1533d23ffff8ae3b831bd (patch) | |
tree | 7131623994ea3f4bfe3e6cf7bfa0c2895918925d /searx/templates | |
parent | ddee4861cee8d5b08e9219d4e727acc35fc3ca32 (diff) | |
download | searxng-c7220b40ead8c53b21e1533d23ffff8ae3b831bd.tar.gz searxng-c7220b40ead8c53b21e1533d23ffff8ae3b831bd.zip |
Suggestions: use RawTextQuery to make the suggestions URLs. Update all themes accordingly.
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/courgette/results.html | 4 | ||||
-rw-r--r-- | searx/templates/legacy/results.html | 4 | ||||
-rw-r--r-- | searx/templates/oscar/results.html | 4 | ||||
-rw-r--r-- | searx/templates/simple/results.html | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/searx/templates/courgette/results.html b/searx/templates/courgette/results.html index c72b7c3f7..aa983e666 100644 --- a/searx/templates/courgette/results.html +++ b/searx/templates/courgette/results.html @@ -42,8 +42,8 @@ <div id="suggestions"><span>{{ _('Suggestions') }}</span> {% for suggestion in suggestions %} <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}"> - <input type="hidden" name="q" value="{{ suggestion }}"> - <input type="submit" value="{{ suggestion }}" /> + <input type="hidden" name="q" value="{{ suggestion.url }}"> + <input type="submit" value="{{ suggestion.title }}" /> </form> {% endfor %} </div> diff --git a/searx/templates/legacy/results.html b/searx/templates/legacy/results.html index f0d78398d..2e28bc91f 100644 --- a/searx/templates/legacy/results.html +++ b/searx/templates/legacy/results.html @@ -44,8 +44,8 @@ {% set first = true %} {% for suggestion in suggestions %} {% if not first %} • {% endif %}<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}"> - <input type="hidden" name="q" value="{{ suggestion }}"> - <input type="submit" class="suggestion" value="{{ suggestion }}" /> + <input type="hidden" name="q" value="{{ suggestion.url }}"> + <input type="submit" class="suggestion" value="{{ suggestion.title }}" /> </form> {% set first = false %} {% endfor %} diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index 3a1f84067..f712e5779 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -118,8 +118,8 @@ <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="{{ query_prefix + suggestion }}">
- <button type="submit" class="btn btn-default btn-xs">{{ suggestion }}</button>
+ <input type="hidden" name="q" value="{{ suggestion.url }}">
+ <button type="submit" class="btn btn-default btn-xs">{{ suggestion.title }}</button>
</form>
{% endfor %}
</div>
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index 195c478db..a8e899e57 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -50,11 +50,11 @@ <div class="wrapper"> {% for suggestion in suggestions %} <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}"> - <input type="hidden" name="q" value="{{ suggestion }}"> + <input type="hidden" name="q" value="{{ suggestion.url }}"> <input type="hidden" name="language" value="{{ current_language }}"> <input type="hidden" name="safesearch" value="{{ safesearch }}"> <input type="hidden" name="theme" value="{{ theme }}"> - <input type="submit" class="suggestion" value="• {{ suggestion }}"> + <input type="submit" class="suggestion" value="• {{ suggestion.title }}"> </form> {% endfor %} </div> |