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
When setting a default page of 0, which is what Postgres uses as its first page, the self/preivous links are not working as expected.
The self link is null and the previous link goes to page=-1
This is due to the if(!page) check in the getUri method. Could this be changed to be < the default value? I can make a PR if you think this is a reasonable fix.
The text was updated successfully, but these errors were encountered:
I believe this PR addresses your concerns (I ran into this issue myself): #83
It introduces an boolean option at the root of the configuration to allow for using a zero index when paginating. I've defaulted it to false in order to ensure backwards-compatibility, and included tests demonstrating the behavior when it is both false and true.
When setting a default page of 0, which is what Postgres uses as its first page, the self/preivous links are not working as expected.
The self link is null and the previous link goes to
page=-1
This is due to the
if(!page)
check in the getUri method. Could this be changed to be < the default value? I can make a PR if you think this is a reasonable fix.The text was updated successfully, but these errors were encountered: