Adjust url structure when clicking previous page which is page 1