Issue 12338: Use redirect for "about" and "about/more"
This commit is contained in:
parent
e72d17c3af
commit
afd1dba774
|
@ -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;
|
||||
|
||||
|
|
|
@ -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]],
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user