Sign in & Signup pages getting error 400

Hello,

I am creating my first Ghost theme & started working on the members part of the site today. I noticed that at first, my signin & signup pages were 404’s even though my file structure is as follows :

ghost
- content
- - themes
- - - my-theme
- - - - members
- - - - - signin.hbs
- - - - - signup.hbs

Then I realized I had no routes.yaml, so I made a routes.yaml & uploaded it on my ghost admin site. Here is what my routes.yaml looks like :

routes:
    /signup/: members/signup
    /signin/: members/signin
collections:
   /:
      permalink: /{slug}/
      template: index
taxonomies:
      tag: /tag/{slug}/
      author: /author/{slug}/

My links within my partials/site-nav.hbs

 <a href="{{@site.url}}/signin/" class="...">Sign In</a>
 <a href="{{@site.url}}/signup/" class="...">Sign Up</a>

Everything else on my theme is working, but for some reason my signin & signup pages get the error 400 with the message :

Missing template members/signin.hbs for route “/signin/”.
Go to the front page →

So I’ve checked & recreated my file structure 4 times now. With each time I made the folder & files in VSCode & restarted ghost everytime. Then on the 4th time, I stopped ghost all together. Made the folder & files in Windows Explorer & still get the same error when I started ghost again.

May be you are using local pc to run the ghost. Can you try the following code in your routes.yaml? and upload it from admin panel. I hope it will solve your problem.

routes:
    /signup/: members\signup
    /signin/: members\signin
    /account/: members\account

collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

You beautiful human being. That worked.

Can you elaborate on why this is?