diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-16 12:33:03 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-07-01 14:11:39 +0300 |
commit | 8b350af4702dfd3bb6b434da13272539643a81f7 (patch) | |
tree | 865f4f1a56f7417e0228c67615882cca57b76dd9 /lib | |
parent | a4ef453eb2c970aed75d47e867972919033c80f0 (diff) |
Redirect to a plain page to avoid reconnections
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-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(); } /** |