I am trying to permanently redirect user from one url to another, and passing on the parameters.
Here is my url:
"/$lang/abc/$city/"
(redirect:[controller:'mycontroller', action:'xyz'], permanent:true)
"/$lang/xyz/$city/" (controller:'mycontroller', action:'xyz')
I want the user to be redirected from like:
/en/abc/dubai
to
/en/xyz/dubai
But it redirects to
/mycontroller/xyz
What could be possible solution? any help is appreciated. thanks
You can do this way
In URLMappings.groovy define url mapping to some controller and action
and in user controller make and action and redirect uri again