Ghost Newbie - Simple (hopefully) Routes Membership question

Hi All,

I’m trying to create a specific subscribe flow for a membership site. This is my first time working with Routes/YAML and I feel like I’m missing something that will be obvious as soon as someone points it out.

I want to create a page called “subscribe” that presents the membership options. Here’s what I’ve done so far in the theme directory.

  1. Created members/subscribe.hbs

  2. Add “subscribe” to routes.yaml. This is the entirety of my routes file.

    routes:
    /signup/: members/signup
    /signin/: members/signin
    /account/: members/account
    /subscribe/: members/subscribe

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

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

Every page works except subscribe. That 404s for me. If I use the code on the subscribe.hbs template on a different template, it works just fine. For example, I can add that code to signup and its golden. It is the example.com/subscribe that I can’t get to work. Any ideas? Are there protected terms maybe?

Hey there and welcome Ghost Newbie! I just tried this myself and it seems to work ok. Just to clarify, that routes setup you pasted is using the correct indentation? I’m guessing the forum formatting has removed the spaces, it should look like this:

routes:
  /signup/: members/signup
  /signin/: members/signin
  /account/: members/account
  /subscribe/: members/subscribe

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

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

If it’s not this then maybe you need to scan your theme for errors? https://gscan.ghost.org/