Comment 3 for bug 1731301

Revision history for this message
Kit Randel (blr) wrote : Re: Last, prev links not returned when page>lastpage

On reflection, I wonder if it wouldn't be better to preserve this behaviour (no "last" and "next" links on the last page), but ensure "self" points to the last page.

e.g.

When a request for page 6 is made in a 5 page set, currently self=6 in the response, but misleadingly "prev" will be 4, given we have actually returned page 5. The fact that we don't ensure self points to the actual page returned is potentially the real bug (the HAL spec is vague about all this).