Fix pagination url creation