Relative References to CSS in Drupal 7
21 Jun
2011
21 Jun
'11
12:11 p.m.
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? I tried a few themes and I am looking for a setting, but I don't find anything. Thanks.
22 Jun
22 Jun
2:37 p.m.
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
5451
Age (days ago)
5452
Last active (days ago)
1 comments
1 participants
participants (1)
-
Fred Jones