registration submission

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 12
Joined: Wed Aug 15, 2007 1:11 pm

registration submission

Postby paulmn » Wed Oct 24, 2007 1:23 pm


i need to change the page a user is redirected to after they create a new account. i have searched for the place to change this redirect URL, but can not find it. help?



Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: registration submission

Postby asmecher » Wed Oct 24, 2007 1:40 pm

Hi Paul,

Look in pages/user/ in the createAccount function. Near the end, you should see the code responsible for the redirect:

Code: Select all

                        if($source = Request::getUserVar('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.

Alec Smecher
Public Knowledge Project Team

Posts: 12
Joined: Wed Aug 15, 2007 1:11 pm

Re: registration submission

Postby paulmn » Tue Oct 30, 2007 7:52 am


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests