[fix] Internet links disappeared from wikidata side box

Closes: https://github.com/searxng/searxng/issues/4285

Reported and tested by: Popolon
Suggested-by: @dalf
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2025-02-06 14:44:10 +01:00 committed by Markus Heiser
parent 4ab7984edd
commit 147bda894e

View File

@ -641,7 +641,7 @@ class WDURLAttribute(WDAttribute):
return get_external_url(url_id, value) return get_external_url(url_id, value)
if self.url_path_prefix: if self.url_path_prefix:
[account, domain] = value.split('@') [account, domain] = value.split('@', 1)
return f"https://{domain}{self.url_path_prefix}{account}" return f"https://{domain}{self.url_path_prefix}{account}"
return value return value