Details
Description
When creating a plugin that contains GSP's, createLinkTo fails to resolve to the path of the plugin directories. For example, if my plugin has an images directory with an image grails.png in it, <img src="${createLinkTo(dir: 'images', file: 'grails.png')}"/> creates a link to "http://localhost:8080/LinkProject/images/grails.png" as opposed to "http://localhost:8080/LinkProject/plugins/link-tester/images/grails.png"
Attached is a grails app and plugin outlining the problem. The plugin is not yet installed into the grails app. If you unzip and run the plugin, you should be able to go to "http://localhost:8080/link-tester/test" and see the lovely grails logo, however if you install the plugin in the app, go to the app index page, then click the Test controller link, you should not see the image as the app is looking for "http://localhost:8080/LinkProject/images/grails.png"
Seems to be resolved in 1.2.1. Unsure if i am supposed to "Resolve Issue" so I will leave it up to the powers that be!
Thanks,
John