How to redirect user to homepage after login

Open up the login controller file located at:

  • catalog/controller/account/login.php

Now, in this file there are three redirects which you will need to change and all of them look like this:

$this->redirect($this->url->link('account/account', '', 'SSL'));

What this little script is doing is saying “when the user is logged in, change the url to end with this”. All we need to do is edit it to make it change to the homepage variable. So, just quickly change it to:

$this->redirect($this->url->link('common/home', '', 'SSL'));
  • 0 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution