load favicon.ico from referenced project does not work (_host.cshtml)

Viewed 74

load favicon.ico from referenced project does not work (_host.cshtml)

loading of scripts and css files of referenced projects works, but not for the favicon. it's located in the wwwroot of referenced project.

neither work

<image href="_content/Common.Server.UI/favicon.ico" rel="stylesheet" />
<link href="_content/Common.Server.UI/favicon.ico" rel="stylesheet" />

What am I doing wrong?

Thw browser says 404 for the favicon.

1 Answers

rel "Specifies the relationship between the current document and the linked document". The relationship attribute should be "icon" not stylesheet which is used for .css files.

<link rel="icon" type="image/png" href="images/icon.png">

or type ico for .ico files ect.

Related