@@ -21,7 +21,7 @@
21 <span class="result_header text-muted form-inline pull-left suggestion_item">{{ _('Try searching for:') }}</span>
21 <span class="result_header text-muted form-inline pull-left suggestion_item">{{ _('Try searching for:') }}</span>
22 {% for correction in corrections %}
22 {% for correction in corrections %}
23 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-left suggestion_item">
23 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-left suggestion_item">
24− <input type="hidden" name="q" value="{{ correction }}">
24+ <input type="hidden" name="q" value="{{ query_prefix + correction }}">
25 <button type="submit" class="btn btn-default btn-xs">{{ correction }}</button>
25 <button type="submit" class="btn btn-default btn-xs">{{ correction }}</button>
27 {% endfor %}
27 {% endfor %}
@@ -118,7 +118,7 @@
118 <div class="panel-body">
118 <div class="panel-body">
119 {% for suggestion in suggestions %}
119 {% for suggestion in suggestions %}
120 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} suggestion_item">
120 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} suggestion_item">
121− <input type="hidden" name="q" value="{{ suggestion }}">
121+ <input type="hidden" name="q" value="{{ query_prefix + suggestion }}">
122 <button type="submit" class="btn btn-default btn-xs">{{ suggestion }}</button>
122 <button type="submit" class="btn btn-default btn-xs">{{ suggestion }}</button>
124 {% endfor %}
124 {% endfor %}