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


#1
  • 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.


#2

Thanks for the report :slight_smile:

I’ve raised a bug issue:


#3

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