greenlaw110/greenscript — Issue #24: Relative URLs in CSS become wrong paths
Author: itsadok
Created: 2011-11-14 13:43:17+00:00
State: open

If I have a CSS rule like this:

background-image: url('bg.png')

it becomes:

background-image: url(/public/home/itsadok/code/project/test/public/stylesheets/bg.png')

From looking at the code, it seems that the problem is `processRelativeUrl_()` using the full path of the filename to convert the URLs from relative to absolute, which does not sound like the right way to go about it at all.

This issue seems to match Issue #18 in the symptoms, though I couldn't figure out how 82a4684b9 fixed it. I tried running the jquery-ui project, and the issue seems to persist there. (I had to make some changes to make the sample run under v1.2.3).