Adds the links pagination.