Fix <PrevNextButtons>
index when using paginated results
#10144
Merged
<PrevNextButtons>
index when using paginated results
#10144