gridsome / gridsome/gridsome-starter-wordpress

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

Open
#19 11 comments 1 reaction 0 assignees View on GitHub
Dominant language
Vue
Stars
92
Forks
30
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.