Closed ryanwiemer closed 6 years ago
Oooh, interesting. I looked into how Gatsby handles pages like /foo
vs /foo/
. I can call createPage()
twice, with and without the trailing slash. They will be treated as separate pages by Gatsby, but only one of them will be rendered. The "winning" page will be rendered at both /foo
and /foo/
.
Anyway, I added some logic to test for a single /
as the pathPrefix
and generate proper path
values. Released it as version 0.3.1 and hopefully your issue is fixed.
Thanks for reporting @ryanwiemer, really appreciate the feedback.
Description Of Issue
nextPagePath
andpreviousPagePath
in the pageContext. (see screenshot below)Expected Result
The README should provide clearer instructions on how to properly use the plugin when there is no path prefix. This may require adjusting the logic to either make that field optional and have default behavior or to correct the issue shown here.