complete pagination conditions and routes