Forums / Developer / RedirectAfterUserRegister
Andy Caiger
Tuesday 21 June 2011 4:19:57 am
I found that kernel/user/register.php has the facility to customise redirect after user register: it tests the existence of a session variable and a POST variable called' RedirectAfterUserRegister'. But how do we set this variable before the register view is called? It seems that the standard form in login.tpl calls the user/login view first which then redirects to the user/register view. POST variables are lost in the redirect it seems.
Any ideas?
EAB - Integrated Internet Success Offices in England, France & China. http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com
Marko Žmak
Tuesday 21 June 2011 11:29:02 am
I belive you have to put something like this:
<input type="hidden" name="RedirectAfterUserRegister" value="#your_redirect_url#">
in the template which generates the registration form.
Is this what you were looking for?
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth