diff --git a/gatsby/pagination/create-categories-pages.js b/gatsby/pagination/create-categories-pages.js index 11007d7..5490110 100644 --- a/gatsby/pagination/create-categories-pages.js +++ b/gatsby/pagination/create-categories-pages.js @@ -35,7 +35,7 @@ module.exports = async (graphql, actions) => { postsLimit: postsPerPage, postsOffset: i * postsPerPage, prevPagePath: i <= 1 ? categorySlug : `${categorySlug}/page/${i - 1}`, - nextPagePath: `/${categorySlug}/page/${i + 1}`, + nextPagePath: `${categorySlug}/page/${i + 1}`, hasPrevPage: i !== 0, hasNextPage: i !== numPages - 1 }