Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292732

CssOptimizer should leave url('#hash') alone

$
0
0

\Drupal\Core\Asset\CssOptimizer anchors all paths in the CSS with its base url. Aside of ignoring external and absolute paths, it should also ignore paths starting with a hash (#).

The current situation changes url(#diagonal-hatch) into url(/sites/default/files/css/optimized/%23diagonal-hatch).

See the attached patch which adds an exception in the regular expression.


Viewing all articles
Browse latest Browse all 292732

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>