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
Burt Beckwith
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Workflow | Grails2 [ 70990 ] | jira [ 71570 ] |
Burt Beckwith
made changes -
| Workflow | jira [ 71570 ] | Grails2 [ 80139 ] |
Peter Ledbrook
made changes -
| Last Reviewed | 01/Jan/10 |
Peter Ledbrook
made changes -
| Workflow | Grails2 [ 80139 ] | jira [ 88951 ] |
Peter Ledbrook
made changes -
| Workflow | jira [ 88951 ] | Grails2 [ 97092 ] |