summaryrefslogtreecommitdiffstats
path: root/lib/Controller/PageController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-16 11:33:03 +0200
committerJoas Schilling <coding@schilljs.com>2020-07-01 10:00:24 +0200
commit977521581615ff5ba143f5189a5d1920a18042e7 (patch)
treeb9db29e4842e5008869738b901103fef97c0bdda /lib/Controller/PageController.php
parent9fc01a64392d7c1e79a871aec0c90b8d4244067f (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.php12
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();
}
/**