summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2023-08-08 18:12:07 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-08-18 19:07:14 +0200
commit13d801b75d012a7a7a76440e1d2a51ed2ae03171 (patch)
tree4c9235dc528d360b68e21916a789b32fe560a371 /searx/webapp.py
parent9100a48541f469df2973d3d42e8ed8f6bba4fac1 (diff)
[feat] results: show source of suggested answer
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 59c1dd1a..9793ee53 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -22,7 +22,7 @@ from typing import List, Dict, Iterable
import urllib
import urllib.parse
-from urllib.parse import urlencode, unquote
+from urllib.parse import urlencode, urlparse, unquote
import httpx
@@ -444,6 +444,7 @@ def render(template_name: str, **kwargs):
}
)
)
+ kwargs['urlparse'] = urlparse
# scripts from plugins
kwargs['scripts'] = set()