History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-2934
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Graeme Rocher
Reporter: Matthias
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

Presence of 'params' argument in g:link and createLink breaks custom URL mappings

Created: 12/May/08 04:39 AM   Updated: 12/May/08 04:39 AM
Component/s: TagLib
Affects Version/s: 1.0.2
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Ubuntu Linux 8.04, JDK 6


 Description  « Hide
As soon as the 'params' attribute in g:link or createLink is used any custom URL mappings that affect the order of controller, action and ID names in the generated link will be disregarded.

Observed with the following mapping (conf/UrlMappings.groovy):

"/users/$id?/$action?" {
    controller = "user"
}

Issued command:

createLink(controller: "user", action: "profile", id: "bob", params: [q:"test"])

Expected output

http://localhost:8080/<proj>/users/bob/profile?q=test

Actual output

http://localhost:8080/<proj>/users/profile/bob?q=test

Without the 'params' argument, everything works as expected.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.