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.