private function updateParameter(ChangelanguageNavigationEvent $event)
    {
        $currentParam = $this->manager->getParameterName();
        $newParam = $this->manager->getParameterName($event->getNavigationItem()->getRootPage()->id);

        $parameters = $event->getUrlParameterBag();
        $attributes = $parameters->getUrlAttributes();

        if (!isset($attributes[$currentParam])) {
            return;
        }

        $attributes[$newParam] = $attributes[$currentParam];
        unset($attributes[$currentParam]);

        $parameters->setUrlAttributes($attributes);
    }