mirror of
https://github.com/searxng/searxng.git
synced 2025-02-21 04:39:02 +00:00
[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
147bda894e
commit
c1eda8f4a6
@ -641,7 +641,7 @@ class WDURLAttribute(WDAttribute):
|
||||
return get_external_url(url_id, value)
|
||||
|
||||
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 value
|
||||
|
Loading…
Reference in New Issue
Block a user