Remove "/_search" from uriInfo.getPath() otherwise the value set link path will not be correct.