From 8b350af4702dfd3bb6b434da13272539643a81f7 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 16 Jun 2020 11:33:03 +0200 Subject: Redirect to a plain page to avoid reconnections Signed-off-by: Joas Schilling --- lib/Controller/PageController.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib') 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(); } /** -- cgit v1.2.3