You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given we just wrap Laravel pagination, this seems to be their default behaviour. I would not consider it a bug, and changing it would be a breaking change. I would welcome an update to the documentation though, since it may not be obvious.
Describe the bug
When using pagination, requesting page 0 (or any negative integer page number e.g. page -31) returns page 1.
Expected behavior/Solution
When requesting a page number less than 1, you should not receive page 1.
Option 1: return requested page with empty data array.
Option 2: return an error
Steps to reproduce
page: 0
(or any negative integer) ensuring to request paginatorInfocurrentPage
currentPage
is1
and the data is the first page of resultsOutput/Logs
N/A
Lighthouse Version
6.14
The text was updated successfully, but these errors were encountered: