зеркало из https://github.com/nextcloud/spreed.git
Fix redirect on "Talk to …" links
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
0cf90feee2
Коммит
d547cc6d0e
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче