diff --git a/site/app/Www/Presenters/TalksPresenter.php b/site/app/Www/Presenters/TalksPresenter.php index 84578df35..971e7211a 100644 --- a/site/app/Www/Presenters/TalksPresenter.php +++ b/site/app/Www/Presenters/TalksPresenter.php @@ -65,7 +65,8 @@ public function actionTalk(string $name, ?string $slide = null): void try { $talk = $this->talks->get($name); if ($talk->getLocale() !== $this->translator->getDefaultLocale()) { - $this->redirectUrl($this->localeLinkGenerator->links(...$this->getLocaleLinksGeneratorParams())[$talk->getLocale()]->getUrl(), IResponse::S301_MovedPermanently); + $links = $this->localeLinkGenerator->links(parent::getLocaleLinkAction(), parent::getLocaleLinkParams()); + $this->redirectUrl($links[$talk->getLocale()]->getUrl(), IResponse::S301_MovedPermanently); } if ($talk->getSlidesTalkId()) { $slidesTalk = $this->talks->getById($talk->getSlidesTalkId());