From 9826caa2f142e6fe64b54ac4f6c65fd7315d4890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 20 Jun 2020 19:42:47 +0200 Subject: [PATCH] one last favicon fix --- sdbs_infra/dashboard/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdbs_infra/dashboard/views.py b/sdbs_infra/dashboard/views.py index b122e19..9ec8f93 100644 --- a/sdbs_infra/dashboard/views.py +++ b/sdbs_infra/dashboard/views.py @@ -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