Hello Magento folks,

Welcome to the Magento Tutorial series in which today I will try to guide you about How to Redirect Customers to The Previous Page After Login in Magento 2. Don’t forget to visit the previously published article on How to Enable HTTPS / SSL Certificate in Magento 2. In case you are searching the programmatically way then you will get in our How-To series (Magento 2) where the step by step process of How to Redirect Customers to The Previous Page After Login in Magento 2 is illustrated.


Basically, when there is any user who is browsing your store without login and the user is interested in the products and is trying to add to cart and he is redirected to the login page but if after the login if the user is not redirected to the same page then that is very frustrating for the customer which results affect you stores customer experience and you might lose the sales of your store. 

Magento 2 is one of the most used platforms for Ecommerce websites and is because of the features provided by Magento 2. Admin can simply redirect customers to the previous page after they successfully login in the Magento 2 store by configuring some settings in the backend section. Here is the detailed step by step illustration given below.

There is also a better option where you can integrate Magento 2 Custom Redirect extension which makes you more capable to redirect the users to any specific URLs after login, logout, registration and also can add the product to cart events. So what are you waiting for? Integrate now and boost your sales and increase the customer experience towards your store.

Steps to Configure

Step1: Firstly you have to log in to the Admin Panel and navigate to Stores->Configuration as shown below.

Step 2: Below the Customers, Click on the Customer Configuration option as shown below.

Step 3: Now click on the Login Options as shown below.

Step 4: After completing the above step just change Redirect Customer to Account Dashboard after Logging in to “NO” as shown below.

Final Words

After the completion you can check your front-end and all the changes will be reflected. For any kind of help do contact our Support team they will be happy to help you. And integrate Magento 2 Custom Redirect extension now for creating and advancing your store. I hope it was helpful. If you find the article helpful do share it with your Magento colleagues and don’t forget to comment down your reviews for this article it will be more helpful for us.

Happy Reading.

Magento 2 Custome Redirect

Click to rate this post!
[Total: 2 Average: 5]