mike_101 Posted April 11, 2015 Share Posted April 11, 2015 Hi there. I've added a modified copy of the login form to the header of my prestashop so my users can log in from any page in the shop. It works as it should, It logs you in, the problem is that it redirects you to the login page and your username (and logout link for that matter) does not appear in the header, they appear once you refresh, or go to any other page. My question is, if I loggin in corectly, how do I redirect myself to the page I once was before I logged in ? or at least redirect me to the index.. Thanks. Link to comment Share on other sites More sharing options...
Krystian Podemski Posted April 11, 2015 Share Posted April 11, 2015 (edited) It's because you don't have specifed "back" param in URL, here's the correct URL: {$link->getPageLink('authentication', true, NULL, "back=my-account")|escape:'html':'UTF-8'} you need to replace my-account to for example request_uri or other page Edited April 11, 2015 by Krystian Podemski (see edit history) Link to comment Share on other sites More sharing options...
mike_101 Posted April 11, 2015 Author Share Posted April 11, 2015 Hello. Which URL are you speaking of? Link to comment Share on other sites More sharing options...
mike_101 Posted April 14, 2015 Author Share Posted April 14, 2015 Ok, so I've replaced "my-account" with "index" but it doesn't take me to the index. What do I need to pass to say take me to the index 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