Timeline/EventSubscriber/PostLinkSubscriber.php
public function setPostLink(TimelineLinkEvent $event): void
    {
        $action = $event->getAction();

        if (!in_array($action->getVerb(), ['post', 'reply'])) {
            return;
        }

        $production = $action->getComponent('indirectComplement')->getData();
        $post = $action->getComponent('directComplement')->getData();
        $event->setLink($this->url_generator->generate('bkstg_board_show', [
            'production_slug' => $production->getSlug(),
            '_fragment' => 'post-' . $post->getId(),
        ]));
    }
public function setPostLink(TimelineLinkEvent $event): void
    {
        $action = $event->getAction();

        if (!in_array($action->getVerb(), ['post', 'reply'])) {
            return;
        }

        $production = $action->getComponent('indirectComplement')->getData();
        $post = $action->getComponent('directComplement')->getData();
        $event->setLink($this->url_generator->generate('bkstg_board_show', [
            'production_slug' => $production->getSlug(),
            '_fragment' => 'post-' . $post->getId(),
        ]));
    }
Set the post link on the timeline.

@param TimelineLinkEvent $event The timeline link event.

@return void