I am trying to redirect users to the homepage after they successfully reset their password in my Shopify store. I have attempted various methods, including JavaScript for client-side redirection, but haven’t been successful.
Can anyone guide me on how to achieve this, any relevant documentation, or resources?
Hi @anup125
To redirect the customer once the password is updated you can add the below code In main-reset-password.liquid or a similar file or you can check which file is called in the customers/reset_password.json Check these screenshots: https://prnt.sc/fCn–aO0mcpV , https://prnt.sc/TMFM-AgJTjm-
{%- form ‘reset_customer_password’ -%}
@Huptech-Web Thank you for this, was looking for a way to redirect customers once they’ve established their password for the first time, back to the storefront - but it doesn’t seem to be working. They’re still going to their account page. I set the code exactly as you have it in the main-reset-password.liquid file, to the main site URL. Tried a straight slash and the full URl but still getting the account page.