code: def dest(self):
          
          if hasattr(self, "parent") and self.parent is None:
              raise ValueError("orphaned object: parent is None")
          if self.parent.parent.isClosed or self.parent.parent.isEncrypted:
              raise ValueError("operation illegal for closed / encrypted doc")
          doc = self.parent.parent
  
          if self.isExternal or self.uri.startswith("#"):
              uri = None
          else:
              uri = doc.resolveLink(self.uri)
  
          return linkDest(self, uri)
docs: Create link destination details.