[support] Relative References to CSS in Drupal 7

Fred Jones fredthejonester at gmail.com
Wed Jun 22 12:37:36 UTC 2011


> Seems that by default references to CSS files in D7 are absolute, i.e.
> they include the domain name. Is there a way to make them all
> relative?

The only solution I have found thus far is to hack page.tpl.php and
use str_replace() to remove the domain name from $scripts and $styles.

There must be a better way however...

Fred


More information about the support mailing list