When trying to redirect the customers to a reset password form, the website sends them to a 404 page

I am developing a theme in shopify for a client. I have created both loing and sing up forms for the clients, however, when trying to create an tag for them to redirect them to a reset password form, it redirects them to a 404 page.

This is the login page and form of the website


    {% form 'customer_login', return_to: routes.collections_url %}
      {{ form.errors | default_errors }}

      

        
        
      

      
        
        
      

      
        
      

    {% endform %}

    
        ### Not a customer yet? Sign Up!
    

    
        Forgot Password?
    

  

And this is the reset_password form

# 
    {{ 'customer.reset_password.title' | t }}
  
  

    {{ 'customer.reset_password.subtext' | t }}
  

  {%- form 'reset_customer_password' -%}
    {%- if form.errors -%}
      ## 
        {{ 'accessibility.error' | t }} 
        
        {{ 'templates.contact.form.error_heading' | t }}
      
      
        {%- for field in form.errors -%}
          - {%- if field == 'form' -%}
                {{ form.errors.messages[field] }}
              {%- else -%}
              
                  {{ form.errors.translated_fields[field] | capitalize }}
                  {{ form.errors.messages[field] }}
              
              {%- endif -%}
          
        {%- endfor -%}
      

    {%- endif -%}

    
      
      
      {%- if form.errors contains 'password' -%}
        <small>
          
          {{ form.errors.translated_fields.password | capitalize }}
          {{ form.errors.messages.password }}
        </small>
      {%- endif -%}
    

    
      
      
      {%- if form.errors contains 'password_confirmation' -%}
        <small>
          
          {{ form.errors.translated_fields.password_confirmation | capitalize }}
          {{ form.errors.messages.password_confirmation }}
        </small>
      {%- endif -%}
    

    
  {%- endform -%}