When using dynamic routes {{meta_title}} and {{body_class}} are empty

  • What version of Ghost are you using? 2.3

I have created a page with title Page1 and has slug page1, and is accessible from /page1/.
I have also created a page with title ChildPage1 and has slug child-page1 and is accessible from /page1/child-page1/

Everything else works as expected.
The problem is that {{meta_title}} and {{body_class}} are empty. How can I make this work?

The routes yaml contains this:

  /page1/:
    data: page.page1
    redirect: false
    template:
      - custom-page1
  /page1/child-page1/:
    data: page.page1
    redirect: false
    template:
      - custom-page1

Thanks.

Thanks for the report :slight_smile:

I’ve raised a bug issue:

2 Likes

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