Jump to content

[SOLVED] Redirection after login


Recommended Posts

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 by ccb78 (see edit history)
Link to comment
Share on other sites

  • 4 months later...

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

×
×
  • Create New...