Merge pull request #4063 from sbwalker/dev
fix #4061 - invalid type for favicon
This commit is contained in:
commit
045c225c8c
@ -34,14 +34,14 @@
|
|||||||
var headcontent = "";
|
var headcontent = "";
|
||||||
|
|
||||||
// favicon
|
// favicon
|
||||||
var favicon = "favicon.ico";
|
|
||||||
var favicontype = "x-icon";
|
|
||||||
if (PageState.Site.FaviconFileId != null)
|
if (PageState.Site.FaviconFileId != null)
|
||||||
{
|
{
|
||||||
favicon = Utilities.FileUrl(PageState.Alias, PageState.Site.FaviconFileId.Value);
|
headcontent += $"<link id=\"app-favicon\" rel=\"icon\" href=\"{Utilities.FileUrl(PageState.Alias, PageState.Site.FaviconFileId.Value)}\" />\n";
|
||||||
favicontype = favicon.Substring(favicon.LastIndexOf(".") + 1);
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
headcontent += $"<link id=\"app-favicon\" rel=\"icon\" type=\"image/x-icon\" href=\"favicon.ico\" />\n";
|
||||||
}
|
}
|
||||||
headcontent += $"<link id=\"app-favicon\" rel=\"shortcut icon\" type=\"image/{favicontype}\" href=\"{favicon}\" />\n";
|
|
||||||
|
|
||||||
// head content
|
// head content
|
||||||
AddHeadContent(headcontent, PageState.Site.HeadContent);
|
AddHeadContent(headcontent, PageState.Site.HeadContent);
|
||||||
|
Reference in New Issue
Block a user