[fix] Internet links disappeared from wikidata side box (second try)
Related: - https://github.com/searxng/searxng/pull/4286#issuecomment-2639960013 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
bc5c8e5748
commit
887594f634
@ -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('@', 1)
|
[account, domain] = [x.strip("@ ") for x in value.rsplit('@', 1)]
|
||||||
return f"https://{domain}{self.url_path_prefix}{account}"
|
return f"https://{domain}{self.url_path_prefix}{account}"
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user