Jump to content

Redirect after login on B2B website


Recommended Posts

Hi,

On a B2B website, customers need to be logged in to browse the shop. Problem is I would like to redirect them on the page they were supposed to see before log in. For example, when we send a newsletter with links in it, customer click on it, log in and go on the right page.

When a customer isn't logged in, he is redirected to the log in form with a 302 redirection. I managed to get the last URL when they are already logged in, they log out and log in again with the hidden "back" field and HTTP_REFERER in the log in form but the 302 redirection seems to be not working with this solution.

Is there a way to do this ? I'm using Prestashop 1.7.4.4

Thank you !

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...