Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-16 12:33:03 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-07-01 14:11:39 +0300
commit8b350af4702dfd3bb6b434da13272539643a81f7 (patch)
tree865f4f1a56f7417e0228c67615882cca57b76dd9 /lib
parenta4ef453eb2c970aed75d47e867972919033c80f0 (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.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();
}
/**