Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Favicon - page not found warning View modes: 
User avatar
Member
Member
Peter - 9/3/2013 9:52:07 PM
   
Favicon - page not found warning
Hi,
We have multiple website so as per suggestion we have removed root favicon.ico and moved it under ~/App_Themes/MySite/favicon.ico

In the master page head we added these links
<link rel="shortcut icon" href="~/App_Themes/MySite/favicon.ico" />
<link rel="icon" href="~/App_Themes/MySite/favicon.ico" />

The favicon is displayed correctly, however occasionally we get warning in the event log.
Event ID: 9595779
Event type: Warning
Event time: 9/4/2013 12:46:47 PM
Source: Application_Error
Event code: PAGENOTFOUND
User ID: 79
User name: 123456
IP address: 208.115.125.18

Description:

Site name: My Site
Machine name: XXX04
Event URL: /favicon.ico
URL referrer:
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0

Is there anything else we need to configure?
Any suggestions?

Thanks
Peter

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/4/2013 7:58:25 AM
   
RE:Favicon - page not found warning
You might try resolving your URL in a different fashion. Using the ~ only works properly on asp.net controls. You could use something like
href="<%= CMSContext.ResolveCurrentPath("~/App_Themes/MySite/favicon.ico") %>"

User avatar
Member
Member
Peter - 9/5/2013 12:46:31 AM
   
RE:Favicon - page not found warning
Thanks for the suggestion. \

Actually I just removed "~" href="/App_Themes/MySite/favicon.ico" and it works fine now.

Peter