one last favicon fix

This commit is contained in:
Tomáš Mládek 2020-06-20 19:42:47 +02:00
parent 75a42af1be
commit 9826caa2f1

View file

@ -100,7 +100,7 @@ class IndexView(TemplateView):
for link_tag in link_tags:
if rel in link_tag.attrs['rel']:
href = link_tag.attrs['href']
if netloc not in href and not (href.startswith("/") or href.startswith("http")):
if netloc not in href and not (href.startswith("//") or href.startswith("http")):
image = base_url + (href if href.startswith("/") else f"/{href}")
else:
image = href