Use paginator.(next|previous)_page_path instead of just the number.

Closes #3074