views:

34

answers:

2

Hello,

Does anyone know why the favicon dissapears

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 dissapears 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??

Thanks, Richard

+6  A: 

Try

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

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

Pekka
+1 Good catch! Thats looks like his problem!
Doug Neiner
Thanks for seeing this, that was sinple enough
Richard
+1  A: 

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?

Kenaniah