public function onNodeInit($event, $node) { if ('link' === $node->type && $node->get('redirect')) { $node->link = $node->path; } }