add path of the current page in the pagination result