Suggestions: use RawTextQuery to make the suggestions URLs. Update all themes accordingly.

This commit is contained in:
Dalf 2019-07-16 16:27:29 +02:00
parent ddee4861ce
commit c7220b40ea
8 changed files with 25 additions and 14 deletions

View file

@ -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="&bull; {{ suggestion }}">
<input type="submit" class="suggestion" value="&bull; {{ suggestion.title }}">
</form>
{% endfor %}
</div>