Skip to content

Can't have pages with children render correctly: routes: { page: ':link', #19

Open
@Kainkainkain

Description

    routes: {
      page: ':link',
      post: '/media/:year/:month/:slug', //adds route for "post" post type (Optional)
      post_tag: '/tag/:slug' // adds route for "post_tag" post type (Optional)
    }

Doesn't work.
routes: { page: ':link_raw', }
is close - but the / character comes out as URL decoded %2f.
E.g. all the links are:
mysite.com/toppage%2fsecondlevel%2fthirdlevel

So can only have /pages/:slug which is not SEO or structured (especially for 3-4 level deep websites).

Goal would be able to replicate wordpress page structure

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions