JonathanWalsh/Granule — comment on commit 55e58b5eef399f950a0f18ffd2c8eb7537c031a5
File:  line 0
By ilychakov:

To fix the problem with overwriting absolute path in CSS

E.g. /css/buttons.css contains
.span {background url(/image/blah.png)}
The line should stay same, but during conversion it's changed to .span {background url(/css/image/blah.png)}

Steps to fix:
1. revert current change
2. Replaces lines in com/granule/utils/CSSHandler.java
from
>>
if (!replaceInfo.isImport)
sb.append(PathUtils.clean(newPath + replaceInfo.text));
>>
to
>>
if (!replaceInfo.isImport) {
sb.append(PathUtils.clean((replaceInfo.text.startsWith("/") ? "" : newPath) + replaceInfo.text));
}
>>

Thanks!