Solved

How to Redirect Users to Specific Page After Password Reset

anup125
Shopify Partner
2 1 1

Hello,

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?

Thank you for your help!

 

Accepted Solutions (2)

Rishihuptech
Shopify Partner
351 63 68

This is an accepted solution.

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--aO0mcpVhttps://prnt.sc/TMFM-AgJTjm-
{%- form 'reset_customer_password' -%}

 

<input type='hidden' name='return_to' value='/pages/contact'>

 

 

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

View solution in original post

anup125
Shopify Partner
2 1 1

This is an accepted solution.

It works, Thank you soo much

View solution in original post

Replies 3 (3)

Rishihuptech
Shopify Partner
351 63 68

This is an accepted solution.

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--aO0mcpVhttps://prnt.sc/TMFM-AgJTjm-
{%- form 'reset_customer_password' -%}

 

<input type='hidden' name='return_to' value='/pages/contact'>

 

 

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
anup125
Shopify Partner
2 1 1

This is an accepted solution.

It works, Thank you soo much

utopiastudios
Tourist
13 0 0

@Rishihuptech 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. 

Any thought? Thanks!