0

It's pretty weird but we have an app with a favicon who is working as a charm. Then my app hasn't any favicon so I decided to add the same as the one of the working app.
The working app make it like this:

/public/favicon.ico

then in app.html/head there is this tag <link rel="icon" href="/favicon.ico" />

enter image description here
so I made the same steps and the structure is 100% the same

and for an unknown reason despite I made 100% the same things as this app it doesn't display the favicon, but if I go to myapp/favicon.ico I can see it.

The question is what could affect the favicon display ?

1 Answers1

0

go a step back using ../ then enter your favicon path again like this

../public/favicon.ico

For example

My favicon in this parth [ /images/icons/favicon.png ] and my html file in this path [ /src/components/header.html ], In this case i have to go back ../../ first two are for components and src now you're at the root and since you're at the root, You just have to type your path from the root like this ../../images/icons/favicon.png

Calibur Victorious
  • 638
  • 1
  • 6
  • 20
  • should it work with localhost ? (or I need to deploy again) –  Apr 19 '17 at 12:46
  • Even like this (`/Users/me/Desktop/myapp/public/favicon.ico`) it doesn't work, should it work on localhost or no ? –  Apr 19 '17 at 12:54
  • @Jerome What is the root path of your Project files? – Calibur Victorious Apr 19 '17 at 12:55
  • Could you just tell me if it should work on localhost please ? –  Apr 19 '17 at 12:56
  • http://stackoverflow.com/questions/20054788/how-to-load-a-favicon-with-meteor founded the solution here if you edit your i'll mark as answer because it's a mistake from me to forgot to say that I'm using Meteor –  Apr 19 '17 at 12:57
  • @Jerome the localhost shows your project files, So you just have to identify the path to your icon inside the root(project files), – Calibur Victorious Apr 19 '17 at 12:58