Fix pagination for master branch, refs #3211

See #3211 for issue description