Using Grails 2.0.1 (upgraded from 1.3.7). In application.properties I have app.context = “/” and all is generally working well. However, my redirects now attempt to include an app context.
redirect action: “edit”, id:genAttribute.id
So instead of
http://localhost:8080/genAttribute/edit/55
I end up with
http://localhost:8080/bh/genAttribute/edit/55
which of course doesn’t work. Another interesting piece of this is that the g:link tag works fine. It just seems to be the redirect calls from my controllers.
I just stumbled across this so the solution is to remove the grails.serverURL from Config.groovy.