Build url outside loop, actually increment page