dzoxen Posted November 26, 2013 Share Posted November 26, 2013 Hi, I want that, when user clicks on logout, he is redirected to main page? So, I need this "{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" changed..? Thanx in advance Link to comment Share on other sites More sharing options...
Rolige Posted November 26, 2013 Share Posted November 26, 2013 Easy... In PS 1.5 edit the file: classes/controller/FrontController.php Locate: elseif (isset($_GET['mylogout'])) { $this->context->customer->mylogout(); Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null); } Change for: elseif (isset($_GET['mylogout'])) { $this->context->customer->mylogout(); Tools::redirect('index.php'); } Regards. 1 Link to comment Share on other sites More sharing options...
dzoxen Posted November 26, 2013 Author Share Posted November 26, 2013 I figured that it's easy.. Begginer Thank You so much Link to comment Share on other sites More sharing options...
Rolige Posted November 27, 2013 Share Posted November 27, 2013 It's nothing, regards. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now