fix(blog): Fix author paginated page url: `/blog/authors/<author>/page/2` (#11577)

This commit is contained in:
Sébastien Lorber 2025-11-27 16:39:08 +01:00 committed by GitHub
parent c6a86ff717
commit c32ed21431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -399,7 +399,7 @@ exports[`buildAllRoutes works for realistic blog post 2`] = `
"listMetadata": {
"blogDescription": "Custom blog description",
"blogTitle": "Custom blog title",
"nextPage": "/blog/authors/author1/authors/2",
"nextPage": "/blog/authors/author1/page/2",
"page": 1,
"permalink": "/blog/authors/author1",
"postsPerPage": 2,
@ -429,7 +429,7 @@ exports[`buildAllRoutes works for realistic blog post 2`] = `
],
"sidebar": "@aliased/data/blog-post-list-prop-default.json",
},
"path": "/blog/authors/author1/authors/2",
"path": "/blog/authors/author1/page/2",
"props": {
"author": {
"count": 3,
@ -444,7 +444,7 @@ exports[`buildAllRoutes works for realistic blog post 2`] = `
"blogTitle": "Custom blog title",
"nextPage": undefined,
"page": 2,
"permalink": "/blog/authors/author1/authors/2",
"permalink": "/blog/authors/author1/page/2",
"postsPerPage": 2,
"previousPage": "/blog/authors/author1",
"totalCount": 3,

View File

@ -327,7 +327,7 @@ export async function buildAllRoutes({
basePageUrl: author.page.permalink,
blogDescription,
blogTitle,
pageBasePath: authorsBasePath,
pageBasePath,
postsPerPageOption: postsPerPage,
});