Hi Paul,
Look in pages/user/CreateAccountHandler.inc.php in the createAccount function. Near the end, you should see the code responsible for the redirect:
- Code: Select all
if($source = Request::getUserVar('source'))
Request::redirectUrl($source);
else Request::redirect(null, null, 'login');
If a user is taken through a redirect process for a particular reason, e.g. they followed the "submit an article" link but weren't logged in, the $source variable should be set and they'll be redirected according to its value. Otherwise -- which is probably the case in your situation -- they'll drop through to the "Request::redirect(null, null, 'login');" call, which is the one you probably want to change.
Regards,
Alec Smecher
Public Knowledge Project Team