Switch getLink to getPath, add getLink