summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2019-07-01 19:52:34 -0500
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2019-07-01 19:52:34 -0500
commit6626f013656d39bc90d179e6706825552a8e588d (patch)
treec87a6874ea05d277a40e4f6539d2141b4b9ca38d /searx/webapp.py
parent40272b0044a2ef520ff9c3fb3513c5a340663f22 (diff)
[fix] preserve bangs in suggestions and corrections
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index dd4c84098..4c983509d 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -584,6 +584,7 @@ def index():
'results.html',
results=results,
q=request.form['q'],
+ query_prefix=u''.join((request.form['q']).rsplit(search_query.query.decode('utf-8'), 1)),
selected_categories=search_query.categories,
pageno=search_query.pageno,
time_range=search_query.time_range,