Richard
Richard

Reputation: 4546

favicon disappears

Why the favicon disappears

Background:

I have my site made according to mvc So, I will have a frontcontroller and a main layout All the other views will be loaded in the $content variable from the main layout. The main layout holds the tags withe the link rel "shortcut favicon".

The favicon disappears when I klik on a link in a child view. This happens with firefox.

IE is ok, but is more persistant anyway, even if you want to get rid of it.

So, in short, - is there an explanation for this, maybe?

Upvotes: 0

Views: 460

Answers (2)

Kenaniah
Kenaniah

Reputation: 5201

Do all the resulting HTML pages in your child view contain the proper <link> tag for your favicon?

Does the link tag's href reference an absolute path?

Could it be that you visited your child view's output before your favicon existed, and your missing favicon is actually being cached?

Upvotes: 1

Pekka
Pekka

Reputation: 449823

Try

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

to make sure you are always pointing to the web root.

Upvotes: 8

Related Questions