From 5253df946b8eb45903ed6ea7e724ec6b5000b2cf Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 4 May 2021 09:57:14 +0000 Subject: [mod] option to enable or disable "proxy" button next to each result (#54) * [mod] option to enable or disable "proxy" button next to each result Closes: https://github.com/searxng/searxng/issues/51 Signed-off-by: Markus Heiser Co-authored-by: Alexandre Flament --- searx/webapp.py | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index b8bc60ec5..dd1557c99 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -444,6 +444,7 @@ def render(template_name, override_theme=None, **kwargs): kwargs['image_proxify'] = image_proxify kwargs['proxify'] = proxify if settings.get('result_proxy', {}).get('url') else None + kwargs['proxify_results'] = settings.get('result_proxy', {}).get('proxify_results', True) kwargs['opensearch_url'] = url_for('opensearch') + '?' \ + urlencode({'method': kwargs['method'], 'autocomplete': kwargs['autocomplete']}) -- cgit v1.2.3