view.totalPages
becomes 1
when current page is out of bounds
#107
Labels
bug
Something isn't working
view.totalPages
becomes 1
when current page is out of bounds
#107
The
totalPages
of a hydra view object would previously always show a number of pages in a collection according to thepageSize
value.It appears that this has changed - if the current page is "out of bounds" (e.g there's 10 pages but the
page
query parameter in the URL is 11) it will be set to 1.How should this be handled?
Note by @griffri 24/10/2024 -
totalItems
is also set to 0 when the current page is out of bounds.The text was updated successfully, but these errors were encountered: