metafizzy / metafizzy/infinite-scroll
Page Link Issue
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 7.5k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
We are getting errors either
1- `Bad InfiniteScroll path option. Next link not found: li.next a.page-link` if we are on the last page and our pagination does not display the next link
OR
2- `InfiniteScroll unable to parse next link href: null ` - if we show the next link but because being on the last page it has no href, then we get this error.
We have the checkLastPage enabled.
Any assistance would be appreciated.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two last-page pagination cases described in the issue with checkLastPage enabled: one without a next link and one with a next link whose href is null. Trace InfiniteScroll's next-link handling and verify that neither configuration produces the reported errors while pagination still stops correctly on the last page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100