Don't prepend to services that have schemes with '//' (#925)
parent
2827a4ef47
commit
cec10e81d3
|
@ -171,6 +171,9 @@ 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:
|
||||||
|
if parsed_alt.scheme:
|
||||||
|
link = link.replace(prefix, '')
|
||||||
|
else:
|
||||||
link = link.replace(prefix, '//')
|
link = link.replace(prefix, '//')
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue