Problem/Motivation
Enabled CSS Aggregation breaks file urls with Query Strings (in my case generated by sass/compass). The url is encoded twice after running through CssOptimizer::rewriteFileURI.
This example shows the issue.
<?php
$url = 'sites/default/files/logo.png?123';
print file_create_url($url);
// Result: 'http://example.com/sites/default/files/logo.png%3F123'
// Expected: 'http://example.com/sites/default/files/logo.png?123'
?>
Proposed resolution
Preserve the query string to enable cache busting with other preprocess libs outside of Drupal.
Remaining tasks
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Add automated tests | Instructions | ||
Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards | Instructions |