Fix redirect on "Talk to …" links

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-01-17 12:36:40 +01:00
Родитель 0cf90feee2
Коммит d547cc6d0e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -222,7 +222,7 @@ class PageController extends Controller {
}
} catch (RoomNotFoundException $e) {
return new RedirectResponse($this->url->linkToRoute('core.login.showLoginForm', [
'redirect_url' => $this->url->linkToRoute('spreed.Page.index', ['token' => $token]),
'redirect_url' => $this->url->linkToRoute('spreed.pagecontroller.showCall', ['token' => $token]),
]));
}
@ -272,13 +272,13 @@ class PageController extends Controller {
if ($room->getType() !== Room::PUBLIC_CALL) {
throw new RoomNotFoundException();
}
return new RedirectResponse($this->url->linkToRoute('spreed.Page.index', ['token' => $token]));
return new RedirectResponse($this->url->linkToRoute('spreed.pagecontroller.showCall', ['token' => $token]));
} catch (RoomNotFoundException $e) {
return new RedirectResponse($this->url->linkToRoute('core.login.showLoginForm', [
'redirect_url' => $this->url->linkToRoute('spreed.Page.index', ['token' => $token]),
'redirect_url' => $this->url->linkToRoute('spreed.pagecontroller.showCall', ['token' => $token]),
]));
}
}
return new RedirectResponse($this->url->linkToRoute('spreed.Page.index', ['token' => $token]));
return new RedirectResponse($this->url->linkToRoute('spreed.pagecontroller.showCall', ['token' => $token]));
}
}