Don't prepend to services that have schemes with '//' (#925)
parent
2827a4ef47
commit
cec10e81d3
|
@ -171,7 +171,10 @@ def get_site_alt(link: str) -> str:
|
||||||
link = '//'.join(link.split('//')[1:])
|
link = '//'.join(link.split('//')[1:])
|
||||||
|
|
||||||
for prefix in SKIP_PREFIX:
|
for prefix in SKIP_PREFIX:
|
||||||
link = link.replace(prefix, '//')
|
if parsed_alt.scheme:
|
||||||
|
link = link.replace(prefix, '')
|
||||||
|
else:
|
||||||
|
link = link.replace(prefix, '//')
|
||||||
break
|
break
|
||||||
|
|
||||||
return link
|
return link
|
||||||
|
|
Loading…
Reference in New Issue