Routes.yaml static page 404

I’ve also created SO question (, haven’t got any responses to so I figured I will post my question in here as well.

I’m trying to create a static page that would live in a sub-route (e.g.<root_route>/<sub_route>/ ) and I can’t figure out what am I doing wrong with the routes.yaml, as I’m getting 404 page all the time.

Here’s my Routes.yml file

    template: applications
    data: page.test-route

    permalink: /{slug}/
    template: index

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

Couple of things to note, I did create a page with a slug test-route and publish it and I did create the application.hbs file and put it in content/themes/casper location. The application.hbs content is as follows:

 {{ content }}
 {{ content }}

<div>something to display to indicate that routing is picking up the tempalte</div>

NOTE: I’ve added both #post and #page tags inside of this template to verify which variable is being populated with data.

Ghost version: 2.22.1

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.