From e1a356e6595fb3cf8950f933a342c014adebb958 Mon Sep 17 00:00:00 2001 From: Sayaka Ono Date: Sun, 11 Aug 2019 15:48:12 -0700 Subject: [PATCH] remove an unnecessary slash for nextPagePath for categories pages --- gatsby/pagination/create-categories-pages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }