Prevent Stylesheets from resolving links

John Fu asked on February 9, 2015 06:25

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').

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?

Recent Answers


Dawid Jachnik answered on February 9, 2015 11:07

Hi, just setup in web config app settings key name "CMSUseAbsoluteCSSClientURLs" to false

<add key="CMSUseAbsoluteCSSClientURLs" value="False" />
5 votesVote for this answer Mark as a Correct answer

Banjo Advertising answered on February 10, 2015 04:29

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?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 10, 2015 13:46

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.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.