From fea2c5a71308a4d3629342dfaca100fdd927b503 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 26 Feb 2016 12:05:11 +0100 Subject: [PATCH] Fix results with no scheme Related to #428, which was fixed in e3df22b but broken in a refactoring (b6c3cb0) --- searx/results.py | 1 + 1 file changed, 1 insertion(+) diff --git a/searx/results.py b/searx/results.py index bc656f2a..7e087382 100644 --- a/searx/results.py +++ b/searx/results.py @@ -138,6 +138,7 @@ class ResultContainer(object): # if the result has no scheme, use http as default if not result['parsed_url'].scheme: result['parsed_url'] = result['parsed_url']._replace(scheme="http") + result['url'] = result['parsed_url'].geturl() result['host'] = result['parsed_url'].netloc