Revert "Keep the view when generating pagination links"

This reverts commit 4c14951d95263b9e1eb367d01d972e6339ca25a0.