Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] urlparsing fix

asciimoo7965da55a7a3
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index 00fc3fac2..8c2e04d5c 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -32,6 +32,8 @@ def extract_url(xpath_results):
parsed_url = urlparse(url)
if not parsed_url.netloc:
raise Exception('Cannot parse url')
+ if not parsed_url.path:
+ url += '/'
return url
def request(query, params):