From 75a42af1bec97cf8bda792bfb6d11737ac8fc360 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:41:16 +0200 Subject: [PATCH] fix favicon not matching url domain --- 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 9d444f6..b122e19 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: + 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