How to change the icon when submitting pdf documents on a multilevel installation Sitecore

I have several websites running on the same Sitecore installation (iis site). Is there a way that I can have different favicon.ico for each website when working with PDF documents. Maybe overriding Sitecore MediaRequestHandler? Thanks.

+4
source share
1 answer

If you simply drop the favicon.ico file in wwwroot for the site for now, this icon will be displayed for all sites in this instance. Since the serving media content goes through the MediaRequestHandler , as you indicated, this handler works in context on this managed IIS site and therefore will show the root favicon.ico . The way to fix this for content pages is to link to the icon using a meta tag in your specific layout, but I don't think you can get around this for multimedia elements.

+2
source

Source: https://habr.com/ru/post/1396874/


All Articles