Add favicon to AEM assets such as pdf / videos | Community
Skip to main content
New Participant
May 18, 2021
Solved

Add favicon to AEM assets such as pdf / videos

  • May 18, 2021
  • 1 reply
  • 1888 views

Hi Members,

 

we have a site wholly hosted on AEM and apache webserver. We are facing an issue where the web pages are displaying favicon.ico correctly but the same are not getting displayed on pdfs and videos.

On searching online, we found that keeping favicon in root folder should resolve the issue or keeping in /etc/designs/default can help in resolving the issue, but none of them are working.

Due to this issue, we are getting lot of 404 error logs almost 10K per day. Please help in resolving this issue.

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by davidjgonzalezzzz

I believe you need to do this using the browser's "default" request for /favicon.ico -- you can obviously conditionally re-route this request in Apache Webserver (or even in a AEM servlet if you wanted to write one) - I think there should be context that the request is "for" a binary request by looking at the referrer header.

 

 

 

1 reply

davidjgonzalezzzzAccepted solution
Employee
May 20, 2021

I believe you need to do this using the browser's "default" request for /favicon.ico -- you can obviously conditionally re-route this request in Apache Webserver (or even in a AEM servlet if you wanted to write one) - I think there should be context that the request is "for" a binary request by looking at the referrer header.

 

 

 

New Participant
May 21, 2021
Could you please provide an example of apache re-routing ? this would be helpful.