Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6 from RGBz/master

Empty string for contextPath not working correctly with resource tag
  • Loading branch information...
commit ca0605ab570c37bb5e9a85dd8d49008414cf7355 2 parents a9a5cad + cecc688
@davidmarquis authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 grails-app/taglib/grails/lesscss/LessTagLib.groovy
View
6 grails-app/taglib/grails/lesscss/LessTagLib.groovy
@@ -113,7 +113,11 @@ class LessTagLib {
}
StringBuilder path = new StringBuilder()
- path << g.resource(plugin:plugin ?: null, contextPath: contextPath ?: '', dir: dir, file: name)
+ if(contextPath) {
+ path << g.resource(plugin:plugin ?: null, contextPath: contextPath ?: '', dir: dir, file: name)
+ } else {
+ path << g.resource(plugin:plugin ?: null, dir: dir, file: name)
+ }
if (extension) {
path << extension
}
Please sign in to comment.
Something went wrong with that request. Please try again.