Grails “loses” custom URL mapping when following any links on the page
I have an application where users can browse maps in two ways (like thumbnails and in a list) /map/browse /map/list Now, I would like to restrict these views to just show maps of a specific user, for example through /user/3/browse /user/3/list So I created the mapping: "/user/$userId/browse" { controller = "map" action = "browse" } "/user/$userId/list" { controller = "map" action = "list" } Now, I can go to /user/3/browse , but as soon as I click on a pagination link or change the pagination filters, the URL goes back to /map/browse . Also, if I set the userId to null in the controller, I get