grails 2.0.3 redirect problem

1

17dufa

Guest
Hello,
I've upgraded my application from 1.3.7 to 2.0.3. It looks fine, but now I've found, that my redirect not work in production. I have button, that open link in new tab, this link causes redirect and I get empty page both in Firefox and Google Chrome. Firefox writes in url string "authenticity cannot verified", Google Chrome write in debugger console "Failed to load resource".
In debugger mode redirect works.
 
1

17dufa

Guest
Yes. I've commented line "grails.serverURL = "http://www.changeme.com"" in Config.groovy and now redirect works. If I set grails.serverURL = "" I get same effect.
 

dave

Administrator
Staff member
Best set it to the true URL of your production server. I had a similar issue not long ago and was scratching my head for a while trying to figure out why logging into my prod system was not working... Once I saw that the wrong URL was being called, it became clear.
 
1

17dufa

Guest
When I tried grails.serverURL = "myServer:8082/applicationName" I get duplicating server names in redirect urls, like 'myServer:8082myServer:8082:/applicationName/'
 
Top