mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Keep Hashes in URL when rewriting relative URLs
For certain use cases, like SVG filters, the url needs to have a # symbol. For example, the following css property :
```filter:url("filters.svg#lightGreen")```
In the current version of the codebase, gets rewritten to :
```filter:url("http://myapp.com/filters.svg")```
Whereas the proper behaviour should be:
```filter:url("http://myapp.com/filters.svg#lightGreen")```
This simple change will fix the issue.
This commit is contained in:
@@ -145,7 +145,7 @@ var rewriteRules = function (rules, mergedCssPath) {
|
||||
// Rewrite relative paths (that refers to the internal application tree)
|
||||
// to absolute paths (addressable from the public build).
|
||||
if (isRelative(resource.path)) {
|
||||
absolutePath = pathJoin(basePath, resource.path);
|
||||
absolutePath = pathJoin(basePath, resource.path + resource.hash);
|
||||
} else {
|
||||
absolutePath = resource.path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user