I'm in the process of developing a plugin that has a couple controllers in it. I'm running into the issue that if I have an app context configured in my Config.groovy, it is not honored when doing a redirect. It works fine for a render, and redirects in the app using the plugin work fine, but on a redirect from a controller in the plugin, the app context is being left off. For example:
In the above case, if the controller is accessed via http://localhost:8080/somecontext/mycontroller/myaction the redirect sends you to http://localhost:8080/mycontroller/list (missing the somecontext).
... grails.serverURL = "http://localhost:8080/somecontext" grails.app.context = "/somecontext" grails.web.context = "/somecontext" ...
... redirect(action: "list") ...