public function Link($action = null)
    {
        if ($this->currentRecord) {
            return Controller::join_links($this->parentController->Link(), "/{$this->currentRecord->ID}/{$action}");
        } else {
            return $this->parentController->Link();
        }

    }
public function Link($action = null)
    {
        if ($this->currentRecord) {
            return Controller::join_links($this->parentController->Link(), "/{$this->currentRecord->ID}/{$action}");
        } else {
            return $this->parentController->Link();
        }

    }
public function Link ( $ action = null ) { if ( $ this -> currentRecord ) { return Controller :: join_links ( $ this -> parentController -> Link ( ) , "/{$this->currentRecord->ID}/{$action}" ) ; } else { return $ this -> parentController -> Link ( ) ; } }
Link fragment - appends the current record ID to the URL.

@param string $action Optional action
@return string
Link fragment - appends the current record ID to the URL .