Skip to content

Previous and Self links do not work when default is 0 #81

@dumbbaldmonkey

Description

@dumbbaldmonkey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions