We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Why does my password recovery page return a 404 error?

Why does my password recovery page return a 404 error?

md-abdullah
Shopify Partner
3 0 3

I am trying to link up the password recovery page at the bottom of the login form. The code looks like this -

 

<a href="{{ routes.account_recover_url }}">Recover</a>

 

 

After clicking on the links from the website, it shows a 404 error. The recovery URL is - 

https://[website]/account/recover

 

Why this is happening? Can anyone help, please?

 

Abdullah
Get Quick Response via Email
Replies 3 (3)

orindholt
Shopify Partner
1 0 1

Also currently having this issue. Were you able to resolve it? And if so, how?

Michela_20Tab
Shopify Partner
3 0 0

Me too

Columbus_Themes
Shopify Partner
126 9 17

Hey Abdullah,

You have to understand that the template page in your Theme, Templates -> Customers -> reset_password.JSON will only appear when the user clicks on a links inside an email sent to his email inbox after submitting his email in the reset password form in the login page.

Which means, the user goes to yourShopifyStoreName.com/account/login#recover, then submits his Email, then the user will receive an Email with a link inside it. When the user clicks that link, it will direct him to the reset_password.JSON template page.

What you are looking for is kinda like this:

<a href="{{ routes.account_login_url }}#recover">FORGOT YOUR PASSWORD?</a>

Thumbs up, if you found this useful.

If you find my reply helpful, please hit Like and Mark as Solution.

Happy coding!