CoveoPager Boomerang-ing Users Back to Page 1
I've noticed some strange behavior with the coveo pager. The maximum returned results set in the admin console is 150 and we are returning 10 results per page in our results page.
When the number of results returned by a query is less than the maximum returned results value, e.g. 12, the pager shows as expected:
But when the number of results returned by a query is greater than the maximum returned results value, e.g. 460, the pager gives users the ability to select pages they shouldn't necessarily be able to. In this scenario, if a user selects page 15 the pager looks like:
Upon clicking a value above 15, since only 150 results are returned with 10 results per page, there aren't any results to show and the user is sent back to page 1. Is this the desired behavior?
Ideally, if a user were to make it to page 15, I'd expect the pager to not give the option to select pages greater than 15 and not give users the option to use the next button:
There is a new option on the
Pager component that you can use to specify the maximum number of pages displayed. More info here: https://developers.coveo.com/display/JsSearchV1/Pager+Component
Beware that if using Coveo for Sitecore it's possible that the bundled version doesn't yet have this option available though.