Pagination: better preserve url parameters