feature(cloudfunc) getPathElement -> getPathLinks