Linked_CSS creates absolute hrefs

We're using linked_css design areas which are great because we can use customisations to change the stylesheets for all of our subsites, rather than creating new designs.


However linked_css puts an absolute URL in the source code which is causing us grief when we go to failover.



Is there anyway for linked_css to use a relative URL such as "mysource_files/styles.css"



I understand we could use code like this in our header:

<MySource_AREA design_area="head" id_name="head" />

<LINK REL="stylesheet" TYPE="text/css" HREF="mysource_files/styles.css" />

</MySource_AREA>



… however then we would need a different design per subsite.



Any suggestions? Thanks,

Sarah

You don't need a different design per subsite – just upload a new css file to each customisation. It'll then override the file higher up. This is how customisations work. :slight_smile: However, when you switch to failover, why are your URLs changing at all?


Ahh of course thanks...

When we initially installed we were using the hostname as the Designs folder and site URL - which doesn't work in failover as it is referencing the actual machine. Now we've gone live with a couple of sites we've got several other URLs and we'll apply one of these to the designs folder now instead.

Cheers

Makes sense. Also remember that you have the Static Root Node option if you want to hard-set all public files to a particular static URL.