wro4j: cssUrlRewriting does not take context path into account

When using CssUrlRewriting the result is sometimes wrong when the application 
is running with a context path different than /.

An example is an application running with /herpderp, with a css entry 
"background: url(../bitmaps/backdrop-side.jpg)"
In the file webapp/herp/css/file.css. 
Now this is rewritten to 
background: url("/herp/bitmaps/backdrop-side.jpg"), but the correct entry is 
background: url("/herpderp/herp/bitmaps/backdrop-side.jpg").

Original issue reported on code.google.com by marvin.l...@gmail.com on 27 Mar 2012 at 2:54

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 28

Most upvoted comments