{"id":496,"date":"2019-07-08T13:00:33","date_gmt":"2019-07-08T13:00:33","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/07\/08\/redirect-customers-to-previous-page-after-login-in-magento\/"},"modified":"2025-05-22T16:23:27","modified_gmt":"2025-05-22T10:53:27","slug":"redirect-customers-to-previous-page-after-login-in-magento","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/redirect-customers-to-previous-page-after-login-in-magento\/","title":{"rendered":"How to Redirect Customers to The Previous Page After Login in Magento"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I can\u2019t stress enough on the importance of user experience for an E-commerce business.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These stats from&nbsp;<a href=\"https:\/\/www.superoffice.com\/blog\/customer-experience-statistics\/\" target=\"_blank\" rel=\"noreferrer noopener\">Superoffice<\/a>&nbsp;are self-explanatory to show that the store merchants should not leave a stone unturned to improve the user experience:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>86% of buyers are willing to pay more for a great customer experience<\/li>\n\n\n\n<li>73% of buyers point to customer experience as an important factor in purchasing decisions<\/li>\n\n\n\n<li>65% of buyers find a positive experience with a brand to be more influential than great advertising<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Luckily, Magento offers default functionality that is in line with your efforts to improve the on-site experience!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The backend options allow to&nbsp;<em><strong>redirect customers to the previous page after login in Magento and Magento 2.&nbsp;<\/strong><\/em>The default setting is to redirect the customer to \u201cMy Account\u201d section after login. The store merchants might forget to change this setting, important in contributing to enhancing the on-site experience!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the below methods and don\u2019t let your visitors fumble around in the store!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Redirect Customers to The Previous Page After Login in Magento 2:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log in<\/strong>&nbsp;to Admin Panel<\/li>\n\n\n\n<li>Go to&nbsp;<strong>Stores &gt; Configuration<\/strong><\/li>\n\n\n\n<li>Under&nbsp;<strong>Customers<\/strong>, select&nbsp;<strong>Customer Configuration<\/strong><\/li>\n\n\n\n<li>Expand the&nbsp;<strong>Login Options<\/strong><\/li>\n\n\n\n<li>Set \u201c<strong>Redirect Customer to Account Dashboard after Logging in<\/strong>\u201d to No.<\/li>\n\n\n\n<li><strong>Save<\/strong>&nbsp;configuration.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/07\/1_Magento-2-1024x460.png\" alt=\"How to Redirect Customers to The Previous Page After Login in Magento\" class=\"wp-image-5976\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Redirect Customers to The Previous Page After Login in Magento:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log in<\/strong>&nbsp;to Admin Panel<\/li>\n\n\n\n<li>Go to&nbsp;<strong>System &gt; Configuration<\/strong><\/li>\n\n\n\n<li>Under&nbsp;<strong>Customers<\/strong>, select&nbsp;<strong>Customer Configuration<\/strong><\/li>\n\n\n\n<li>Expand the&nbsp;<strong>Login Options<\/strong><\/li>\n\n\n\n<li>Set \u201c<strong>Redirect Customer to Account Dashboard after Logging in<\/strong>\u201d to No.<\/li>\n\n\n\n<li><strong>Save<\/strong>&nbsp;configuration.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/07\/1_Magento-1024x365.png\" alt=\"How to Redirect Customers to The Previous Page After Login in Magento\" class=\"wp-image-5977\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you are a Magento or Magento 2 store admin, make sure to make the above changes in default settings!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also refer to Redirect Customers to The Previous Page After Login in Magento from our&nbsp;<a href=\"https:\/\/www.youtube.com\/playlist?list=PLBTOxSAJzwEjM5MilmEqj98Ib80tKBu7r\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 video tutorial<\/a>&nbsp;series:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Redirect Customers to The Previous Page After Login in Magento\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/sQO_rIGYJrc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I can\u2019t stress enough on the importance of user experience for an E-commerce business. These stats from&nbsp;Superoffice&nbsp;are self-explanatory to show that the store merchants should&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-496","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/496\/revisions"}],"predecessor-version":[{"id":15352,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/496\/revisions\/15352"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}