Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

favicon not loaded after firebase deployment

Tags:

firebase

Hi is there any reason why favicon.ico is not loaded in deployed site ?

I have in my index.html head

<link rel="icon" href="images/favicon.ico" />

When loading the index.html from my public dir the icon loads fine.

However after 'firebase deploy' the icon does not load.

Any help ?

like image 734
kofifus Avatar asked May 06 '16 23:05

kofifus


4 Answers

For some reason having the icon in a sub dir failed. Moving it to the root directory solved this issue.

like image 197
kofifus Avatar answered Oct 17 '22 02:10

kofifus


The answer is just wait for a while, or using another web browser. I just had the same thing with Chrome, but the icon is displayed well on Firefox or Brave. Happy coding!

like image 38
nambk Avatar answered Oct 17 '22 00:10

nambk


The issue occurs because your browser cached the old icon and still displays it. Hard reload your webpage to fix, in Chrome cmd+shift+R #mac OR ctrl+shift+R # windows/Linux

like image 2
lordvidex Avatar answered Oct 17 '22 01:10

lordvidex


You may try below:

Your icon should be inside the public folder:

yourproject_name/public/favicon.ico

and use this in your index.html file

<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />

Happy coding!

like image 1
Kunvar Singh Avatar answered Oct 17 '22 00:10

Kunvar Singh