mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 00:09:18 +02:00
Fix relative urls that do not start with '/'
This commit is contained in:
parent
9f2446c444
commit
1d4657b714
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@ def extract_url(xpath_results, search_url):
|
||||||
# fix relative url to the search engine
|
# fix relative url to the search engine
|
||||||
url = urljoin(search_url, url)
|
url = urljoin(search_url, url)
|
||||||
|
|
||||||
|
# fix relative urls that fall through the crack
|
||||||
|
if '://' not in url:
|
||||||
|
url = urljoin(search_url, url)
|
||||||
|
|
||||||
# normalize url
|
# normalize url
|
||||||
url = normalize_url(url)
|
url = normalize_url(url)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue