From 6626f013656d39bc90d179e6706825552a8e588d Mon Sep 17 00:00:00 2001 From: Marc Abonce Seguin Date: Mon, 1 Jul 2019 19:52:34 -0500 Subject: [PATCH] [fix] preserve bangs in suggestions and corrections --- searx/templates/oscar/results.html | 4 ++-- searx/webapp.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index ee1052db..3a1f8406 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -21,7 +21,7 @@ {{ _('Try searching for:') }} {% for correction in corrections %} {% endfor %} @@ -118,7 +118,7 @@
{% for suggestion in suggestions %} {% endfor %} diff --git a/searx/webapp.py b/searx/webapp.py index dd4c8409..4c983509 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,