Don't clobber https scheme of absolute URLs when normalising.

This commit is contained in:
Solderpunk 2019-11-05 19:57:29 +02:00
parent dc6c64c741
commit 0fdf9ac473
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class GeminiItem():
base_url = self.url
was_gemini = False
absolute = urllib.parse.urljoin(base_url, relative_url)
if was_gemini:
if absolute != relative_url and was_gemini:
absolute = absolute.replace("https://", "gemini://")
return absolute