‘Combine CSS Files’ breaking image URLs
-
Noticed this issue only when using Combine CSS Files (same whether Minify CSS Files is on or off) –
I have some .site-header background images loaded thusly:
background: url(“/wp-content/uploads/image.jpg”) #444 no-repeat 50% 40%;…which get changed when Combine is toggled on to:
https://mydomain.com/wp-content/themes/mytheme//wp-content/uploads/image.jpg – which is then 301’d to https://mydomain.com/wp-content/themes/mytheme/wp-content/uploads/image.jpgMight have something to do with using a relative URL, but to my knowledge using relative URLs in such instances is common practice (I have many and don’t plan to change them :).
Have previously combined files using Autoptimize with no issues.
Just guessing, but suspect some more fine grained detection of URL format/context may be required. No idea really, just throwing it out there.
Doesn’t seem to do it when I’m logged in – looks like some or all frontend optimizations are disabled for logged in (admin at least) users?
Thanks for your work on the plugin – getting some good results otherwise.
- The topic ‘‘Combine CSS Files’ breaking image URLs’ is closed to new replies.