1
0
Fork 0

Issue 12338: Use redirect for "about" and "about/more"

This commit is contained in:
Michael 2022-12-11 19:50:10 +00:00
parent e72d17c3af
commit afd1dba774
2 changed files with 4 additions and 2 deletions

View file

@ -717,6 +717,10 @@ class App
$this->baseURL->redirect('search'); $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 // Initialize module that can set the current theme in the init() method, either directly or via App->setProfileOwner
$page['page_title'] = $moduleName; $page['page_title'] = $moduleName;

View file

@ -318,8 +318,6 @@ return [
'/proofs' => [Module\Api\Mastodon\Proofs::class, [R::GET ]], // Dummy, not supported '/proofs' => [Module\Api\Mastodon\Proofs::class, [R::GET ]], // Dummy, not supported
], ],
'/about[/more]' => [Module\Friendica::class, [R::GET]],
'/admin' => [ '/admin' => [
'[/]' => [Module\Admin\Summary::class, [R::GET]], '[/]' => [Module\Admin\Summary::class, [R::GET]],