Are you looking to redirect to customer dashboard after login in Magento 2?
Imagine the customer is browsing the product. They liked something and wanted to buy it. A user has to login into the store to buy a product.
Once logged it, there are two pages that can open:
- Page redirects to the previous page users were on
- Page redirects to the customer’s profile page so he can make the purchase
With Magento, you can select which page will open. In this quick tutorial, we will learn to do that.
Redirect to Customer Dashboard after Login in Magento 2:
Follow the steps to redirect to customer dashboard after login in Magento 2:
- Login to Magento admin dashboard
- Navigate to Stores > Configuration
- Click on Customer Configuration under Customers tab
- Expand the Login Options sections
Redirect Customer to Account Dashboard after Logging in: Select the Yes from the drop down.
Redirect to Previous Page after Login in Magento 2:
Follow the steps to redirect to previous page after login in Magento 2:
- Login to Magento admin dashboard
- Navigate to Stores > Configuration
- Click on Customer Configuration under Customers tab
- Expand the Login Options sections
Redirect Customer to Account Dashboard after Logging in: Select the No from the drop down.
Wrap Up
On site experience is critical for ecommerce stores. Even the top ecommerce brand converts merely 0.3% of the site visitors.
Magento comes with multiple functions and features to improve the customer experience. One of them is to redirect the logged in customer to the correct page so they don’t experience any resistance in purchasing.
I hope this tutorial helped you to redirect the customers after login in Magento 2. If you encounter any issue, please leave it in the comments section.