ccb78 Posted December 28, 2012 Share Posted December 28, 2012 (edited) Hi. When a client is logged in my shop (using Authentication page) I'd like to redirect him to the same page he was visiting before loggin. By default, Prestashop is redirecting them to my-account page. I thought I could do it with this change in AuthController.php (line 264): Tools::redirect('my-account.php'); to Tools::redirect($_SERVER['HTTP_REFERER']); But it doesn't work, and after loggin clients are still being sent to my-account page. Does anybody know what more do I have to do? Please, any help is welcome. Thanks in advance! My version is 1.4.8.2. Edited December 28, 2012 by ccb78 (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted January 2, 2013 Share Posted January 2, 2013 check if you have in same file other redirection to my-account i see more than 1 1 Link to comment Share on other sites More sharing options...
ccb78 Posted January 2, 2013 Author Share Posted January 2, 2013 Yes, you are right!! Now the problem is solved. Thank you very much!! Link to comment Share on other sites More sharing options...
benjamin utterback Posted January 2, 2013 Share Posted January 2, 2013 Thank you shacker! I will go ahead and mark as SOLVED. Thanks for the great help. Link to comment Share on other sites More sharing options...
shacker Posted January 3, 2013 Share Posted January 3, 2013 your welcome. ANd nice to meet you in Miami Benjamin!!! 1 Link to comment Share on other sites More sharing options...
Mitchnroll Posted May 20, 2013 Share Posted May 20, 2013 Hello, i'm using prestashop 1.5.3.1. i've edited all the redirect in authConfig.php but doesn't work. is there maybe a cache problem? Please help me Thanks Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2013 Share Posted May 20, 2013 Hello, i'm using prestashop 1.5.3.1. i've edited all the redirect in authConfig.php but doesn't work. is there maybe a cache problem? Please help me Thanks hey, maybe this post will help you: http://www.prestasho..._1#entry1091323 i know that this show how to redirect unlogged users to login page - but you can use the code to redirect logged users Link to comment Share on other sites More sharing options...
Mitchnroll Posted May 20, 2013 Share Posted May 20, 2013 how can i use this code? can you please be more specific about how and where i have to put this code fragment? i just want that users after login go to index.php. Thank you so much Link to comment Share on other sites More sharing options...
Recommended Posts