Do you want to work on this issue?
You can request for a bounty in order to promote it!
saber-plugin-query-posts: Pagination 'next' and 'prev' links seems to be incorrect #559
samoraa posted onGitHub
<!-- Please don't delete this template or we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of Saber. -->
<!-- Issues which contain questions or support requests will be closed. -->
<!-- Please ask questions via following several ways. -->
<!-- https://chat.saber.land/ -->
<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->
Bug report
Steps to reproduce
Fresh install Saber, install and followed saber-plugin-query-posts readme to make a blog post with pagination.
<!-- If you are reporting a bug that can ONLY be reproduced on your repository, PLEASE provide this repo link. That takes guessing work out of the way and saves us time. -->
<!-- You can also use this CodeSandbox starter https://bit.ly/2IlcpNF -->
What is expected?
On the first paginated page, hasNext
should be true
, hasPrev
should be false
, same for nextLink
and prevLink
What is actually happening?
hasNext
and hasPrev
seems to be reversed
First page
Second page
Other relevant information
- Result of running
saber -v
: latest - Browser version (optional): Chromium version 78.0.3904.87 (Official Build) Arch Linux (64-bit)
- Is Saber a global or local install? Local
- Which package manager did you use for the install? NPM
- Does this issue occur when all plugins are disabled? No
Awesome Saber! :zap: