How to Redirect Customers to The Previous Page After Login in Magento
I can’t stress enough on the importance of user experience for an E-commerce business.
These stats from Superoffice are self-explanatory to show that the store merchants should not leave a stone unturned to improve the user experience:
- 86% of buyers are willing to pay more for a great customer experience
- 73% of buyers point to customer experience as an important factor in purchasing decisions
- 65% of buyers find a positive experience with a brand to be more influential than great advertising
Luckily, Magento offers default functionality that is in line with your efforts to improve the on-site experience!
When a non-logged in user is surfing your site and decides to add a product to cart or write a review, you may want the user to either register or login before taking these actions. However, if after logging in, the user is not redirected on the same page to add the product to cart or to write the review, you may lose a conversion or a review for your product 🙁
The backend options allow to redirect customers to the previous page after login in Magento and Magento 2. The default setting is to redirect the customer to “My Account” section after login. The store merchants might forget to change this setting, important in contributing to enhancing the on-site experience!
Follow the below methods and don’t let your visitors fumble around in the store!
How to Redirect Customers to The Previous Page After Login in Magento 2:
- Log in to Admin Panel
- Go to Stores > Configuration
- Under Customers, select Customer Configuration
- Expand the Login Options
- Set “Redirect Customer to Account Dashboard after Logging in” to No.
- Save configuration.
How to Redirect Customers to The Previous Page After Login in Magento:
- Log in to Admin Panel
- Go to System > Configuration
- Under Customers, select Customer Configuration
- Expand the Login Options
- Set “Redirect Customer to Account Dashboard after Logging in” to No.
- Save configuration.
If you are a Magento or Magento 2 store admin, make sure to make the above changes in default settings!
I’d like to know how your customers reacted to this helpful change in the Comments section below 😃
Thanks!
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
Prev
How to Add Google reCAPTCHA to Magento
How to Hide an Empty Custom Tab in Magento 2
Next