Forums / Developer / Control redirection after form submission
Damien MARTIN
Thursday 14 January 2010 8:13:06 am
Hi there,
I have a problem with the eZ redirection system.
In fact, it looks like eZ redirect to the previously accessed page after /user/login and /content/action.
But my problem is that when I have loaded a page I need to send AJAX requests and so, I modify the last accessed URL.
So, I would like to know how I can control the redirection URL manually.
Do you have any idea ?
Peter Keung
Thursday 14 January 2010 11:44:43 am
When posting to the default /user/login view, you can send a hidden input field named "UserRedirectURI" that will take precedence over the last accessed URL stored in the session.
http://www.mugo.ca Mugo Web, eZ Partner in Vancouver, Canada
Friday 15 January 2010 1:45:48 am
Hi Peter,
UserRedirectURI works fine !
Thank you very much for the tip.