Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Empty string for contextPath not working correctly with resource tag #6
We're using Grails 1.4 and 2.0. When using the stylesheet tag of the lesscss plugin we would receive a 404 error because the plugin was requesting my less files with an incorrect URL.
I tracked down the issue. For some reason passing a contextPath of "" to the resource tag doesn't work as expected (see line 116 in the generateRelativePath() method of the LessTagLib). I added an if statement on the contextPath so that it won't be passed as an argument to the resource tag call if it doesn't exist. This fixes the URL when a contextPath isn't specified such that the generated URL refers to the default context path.
Thanks for putting this plugin together. It works really well!