Fixed pagination to allow multiple url parameters.