Can you please explain about <link> element?
You mean what should I do?
I just replace the new favicon with the blazor default one.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I have made a site in blazor server.
Why is my favicon not displayed on the site, while when I run it in VisualStudio, it is displayed without any problem?
thanks
Can you please explain about <link> element?
You mean what should I do?
I just replace the new favicon with the blazor default one.
Your responses are not clear.
The browser looks for favicon.ico in the application root which is the wwwroot folder not wwwroot/site_icons.
Did you added a link element or changed how the static file handler works?
Also, you tagged this question as MVC and Web API but your question states this is a Blazor application.
As you can see favicon is in the wwwroot folder:
On this page:
https://www.daveabrock.com/2020/11/08/blast-off-blazor-update-head/
There is a content:
Now, we can head over the RealFaviconGenerator site to upload our new icon. After adjusting any settings to our liking, it’ll give us a bunch of icons, which we’ll unzip to the root of our wwwroot directory.
In index.html in the wwwroot directory, add the following inside the <head> tag:
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
Do you mean this?
If not, can you explain?