Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-RC3
-
Fix Version/s: None
-
Component/s: Controllers
-
Labels:
-
Environment:Grails development environment
Windows 7 64
Java 6
Description
In Grails 1.3 the following worked in a Grails controller:
def proto =
{ redirect(url: 'abasurl:dosomething') return }In Grails 2.0-RC3 the same fails because the generated URL is prefixed with the controllers URL, so the result is:
http://localhost:8080/GuiLinkabasurl:doesomething
Using parameters 'absolute' or 'base' does not change this behaviour.
However, when the protocol is followed by '//' the redirect URL is constructed correctly:
def proto =
{ redirect(url: 'abasurl://dosomething') return }results in
abasurl://dosomething
In my understanding redirect always should accept the given URL regardless of the prefix being 'abasurl:' or 'abasurl://'
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits