diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-16 11:33:03 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-07-01 10:00:24 +0200 |
commit | 977521581615ff5ba143f5189a5d1920a18042e7 (patch) | |
tree | b9db29e4842e5008869738b901103fef97c0bdda /lib/Controller/PageController.php | |
parent | 9fc01a64392d7c1e79a871aec0c90b8d4244067f (diff) |
Redirect to a plain page to avoid reconnections
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r-- | lib/Controller/PageController.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index b75843c55..d3246e1d0 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -152,7 +152,17 @@ class PageController extends Controller { * @return Response */ public function notFound(): Response { - return new RedirectResponse($this->url->linkToRouteAbsolute('spreed.Page.index')); + return $this->index(); + } + + /** + * @PublicPage + * @NoCSRFRequired + * + * @return Response + */ + public function duplicateSession(): Response { + return $this->index(); } /** |