From afd1dba7743f20e5c6569e1cbc3579539f38d55b Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 11 Dec 2022 19:50:10 +0000 Subject: [PATCH] Issue 12338: Use redirect for "about" and "about/more" --- src/App.php | 4 ++++ static/routes.config.php | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index 0d4e8880dd..d4120bcc2d 100644 --- a/src/App.php +++ b/src/App.php @@ -717,6 +717,10 @@ class App $this->baseURL->redirect('search'); } + if (in_array($moduleName, ['about', 'about/more'])) { + $this->baseURL->redirect('friendica'); + } + // Initialize module that can set the current theme in the init() method, either directly or via App->setProfileOwner $page['page_title'] = $moduleName; diff --git a/static/routes.config.php b/static/routes.config.php index e3c87f1502..f33cd9581a 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -318,8 +318,6 @@ return [ '/proofs' => [Module\Api\Mastodon\Proofs::class, [R::GET ]], // Dummy, not supported ], - '/about[/more]' => [Module\Friendica::class, [R::GET]], - '/admin' => [ '[/]' => [Module\Admin\Summary::class, [R::GET]],