Get page number when index
Added page param to the url when indexing