/** * @todo better way of handling links * @param null $action * @return mixed */ public function Link($action = null) { $c = ContentController::curr()->Link('m'); $url = $c . '/' . $this->URLSegment; if ($action) { $url .= '/' . $action; } return $url; }