The links in our stylesheets are being resolved (We're using GetCSS.aspx). eg. instead of keeping it url('../blah/font.ttf'), it is being resolved and outputted as url('http://domain.com/styles/blah/font.ttf').
url('../blah/font.ttf')
url('http://domain.com/styles/blah/font.ttf')
Normally, this would be ok, but when our admin has put on some redirections and forced a domain to use SSL, then we have some problems. Because the http won't come through properly on https.
Does anyone know of a way to prevent the resolving?
Hi, just setup in web config app settings key name "CMSUseAbsoluteCSSClientURLs" to false
<add key="CMSUseAbsoluteCSSClientURLs" value="False" />
Actually, putting this line in causes the core-icons to break. Rendering all icons used in the dashboard as blank squares. Is there another solution?
Force HTTPS on your site vs. having IIS or your load balancer do this. This way all requests will go through HTTPS vs. HTTP. Should resolve your issue without having to modify any code.
Please, sign in to be able to submit a new answer.