getAnchor for directory.
getLink for share button.