getLink and doc snippet