public function getPath()
{
$path = "";
if ($this->getLinktype() == "internal") {
if ($this->getObject() instanceof Document || $this->getObject() instanceof Asset) {
$path = $this->getObject()->getFullPath();
}
} else {
$path = $this->getDirect();
}
return $path;
}