From c49ef493719d30a9f12f5bc96b2fad92bd69dd82 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 25 Mar 2024 13:05:20 -0400 Subject: [PATCH] fix #4061 - invalid type for favicon --- Oqtane.Client/UI/ThemeBuilder.razor | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Oqtane.Client/UI/ThemeBuilder.razor b/Oqtane.Client/UI/ThemeBuilder.razor index 1ecba14b4..4931824b1 100644 --- a/Oqtane.Client/UI/ThemeBuilder.razor +++ b/Oqtane.Client/UI/ThemeBuilder.razor @@ -34,14 +34,14 @@ var headcontent = ""; // favicon - var favicon = "favicon.ico"; - var favicontype = "x-icon"; if (PageState.Site.FaviconFileId != null) { - favicon = Utilities.FileUrl(PageState.Alias, PageState.Site.FaviconFileId.Value); - favicontype = favicon.Substring(favicon.LastIndexOf(".") + 1); + headcontent += $"\n"; + } + else + { + headcontent += $"\n"; } - headcontent += $"\n"; // head content AddHeadContent(headcontent, PageState.Site.HeadContent);