vmish75 Posted September 25, 2014 Share Posted September 25, 2014 (edited) Hi, Regarding prestashop 1.6 when we logged then it's redirect to my-account page. but I want, after login redirect to specific category page. I do not found any solution yet. I need help. Edited September 25, 2014 by vmish75 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 26, 2014 Share Posted September 26, 2014 authcontroller.php, line 329 Tools::redirect('index.php?controller='.(($this->authRedirection !== false) ? urlencode($this->authRedirection) : 'my-account')); Just get the page you prefer 2 Link to comment Share on other sites More sharing options...
vmish75 Posted September 26, 2014 Author Share Posted September 26, 2014 authcontroller.php, line 329 Tools::redirect('index.php?controller='.(($this->authRedirection !== false) ? urlencode($this->authRedirection) : 'my-account')); Just get the page you prefer Thanks for your reply. I have checked but not working. still redirect to my-account page Please can you tell me this step by step. I am new in prestashop Link to comment Share on other sites More sharing options...
NemoPS Posted September 27, 2014 Share Posted September 27, 2014 Can you check if the back value is set? if (!$this->ajax) { if ($back = Tools::getValue('back')) Tools::redirect(html_entity_decode($back)); Tools::redirect('index.php?controller='.(($this->authRedirection !== false) ? url_encode($this->authRedirection) : 'my-account')); } You can also get rid of that if (!$this->ajax) { Tools::redirect('index.php?controller='.(($this->authRedirection !== false) ? url_encode($this->authRedirection) : 'my-account')); } Link to comment Share on other sites More sharing options...
Beans Posted October 10, 2014 Share Posted October 10, 2014 Thanks for your reply. I have checked but not working. still redirect to my-account page Please can you tell me this step by step. I am new in prestashop Do a search for this line of code in the AuthController.php page: Tools::redirect('index.php?controller='.(($this->authRedirection !== false) ? urlencode($this->authRedirection) : 'my-account')); Change 'my-account' to the page you want it redirecting to (for instance, I changed all mine to 'index' to make users go to the homepage after logging in.) If it doesn't work, try doing the same thing in the AuthController.php that's inside override > controllers > front. You may also need to do what Nemo1 said above (removing one line of code.) 1 Link to comment Share on other sites More sharing options...
Recommended Posts