Minify changes the absolute path to svg assets
-
Hi,
I have no image optimization plugin active and no other minifying plugin besides W3 total cache. HT access is identical to that given on the install tab and everything else works well.
The problem is that the plugin changes the path to certainb svg assets when these are called from a minified css file.
When active the browser requests the below:
https://****.com/wp-content/cache/minify/content/themes/storefront-child-theme-master-test/assets/svg-files/right-arrow.svg
with refererhttps://*****.com/wp-content/cache/minify/4a012.css
When css minification is off:
https://****.gossuin.com/wp-content/themes/storefront-child-theme-master-test/assets/svg-files/right-arrow.svg
These assets are added in css like below:
background-image:url(../storefront-child-theme-master-test/assets/svg-files/email.svg)
Can you help me fix it ?
Many thanks,
A
- The topic ‘Minify changes the absolute path to svg assets’ is closed to new replies.