You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the pages router, when permalinks are set to /blog/[slug], a post url will load the Archive component in BlogPage in blog/[[…path]].tsx. When permalinks are set to /news/[slug], a post url will load the SinglePostsPage in […path].tsx.
App Router
In the app router, when permalinks are set to /blog/[slug], a post url will try to load BlogPage in blog/[[…path]]/page.tsx, but will produce an error:
Error: Neither single or archive returned data: Post
When permalinks are set to /news/[slug], a post url will load Single in (single)/[…path]/page.tsx.
Blog Categories
This setup also makes it so that when permalinks are set to something like /news/[slug] or /blog/[slug], the category pages still show at /category/[slug] instead of /news/category/[slug].
How do we want Headstart to support different permalink structures?
Steps to Reproduce
See above
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Describe the bug
Pages Router
In the pages router, when permalinks are set to
/blog/[slug]
, a post url will load theArchive
component inBlogPage
inblog/[[…path]].tsx
. When permalinks are set to/news/[slug]
, a post url will load theSinglePostsPage
in[…path].tsx
.App Router
In the app router, when permalinks are set to
/blog/[slug]
, a post url will try to loadBlogPage
inblog/[[…path]]/page.tsx
, but will produce an error:Error: Neither single or archive returned data: Post
When permalinks are set to
/news/[slug]
, a post url will load Single in(single)/[…path]/page.tsx
.Blog Categories
This setup also makes it so that when permalinks are set to something like
/news/[slug]
or/blog/[slug]
, the category pages still show at/category/[slug]
instead of/news/category/[slug]
.How do we want Headstart to support different permalink structures?
Steps to Reproduce
See above
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: