Replies: 2 comments 1 reply
Blazor WebAssembly
Blazor Server
Clear Your Cache
|
|
One additional thing to check is whether the project contains more than one favicon declaration. The browser may still load an older Search the whole solution for: Remove or update every old favicon reference. For a Blazor Web App, place the new file in: Then update the <link rel="icon" type="image/png" href="/site-icon.png?v=3" />Using a different filename such as You can verify that the file is served correctly by opening this address directly: If the correct image opens:
Static assets should be stored under |
Uh oh!
There was an error while loading. Please reload this page.
I cannot for the life of me change the favicon of my blazor page. No matter what i do, it stays as the normal blazor icon.
My favicon is located as favicon.png inside wwwroot.
I have deleted the original favicon.png. In App.razor i have changed the link to look like this
<link rel="icon" type="image/png" href="favicon.png" />That did not work. I have tried the same in my page itself, that didnt work either. Whenever i try to find solutions online, most of them just say the things i have tried, which does not work.
All reactions