Setup required to reproduce bug:
- An application that is deployed at the webapp root - i.e. with an empty context path.
- A css file being served by the application, via CssLinkResourceTransformer, within a non-top-level folder, e.g. /some/path/to/styles.css
- An absolute url within that css file, e.g. /images/icon.png
In this case, CssLinkResourceTransformer breaks the absolute path to the icon by turning it into /some/path/to/images/icon.png - i.e. the absolute path inside the the CSS file is intepreted as being a path that is relative to the CSS file itself.
This seems like a bug to me. I have attached a test case: csslinkresourcetransformertest.zip