wangonya/flexible-gatsby

Pagination issue.

Closed this issue · 2 comments

image

When I clone the code and add a bunch of content to test the pagination, the pagination link leads to 404.

Steps to reproduce:

  • Run the project with 40+ content (to have multiple pages)
  • Click on "next page" at the bottom of homepage. That should load "localhost:800/2"
  • Now on the 2nd page click on "next page" again. This time instead of valid "localhost:800/3" it is loading "localhost:800/2/3". Hence I'm getting 404.

I'm super new in gatsby. I couldn't figured out what is the issue here.

Any help ?

Thanks for reporting the issue @saif71. It should be fixed now. Just pull the latest changes.

Thanks for the quick fix @wangonya .