adding a next link from the existing pathname