mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Issue 12338: Use redirect for "about" and "about/more"
This commit is contained in:
parent
e72d17c3af
commit
afd1dba774
2 changed files with 4 additions and 2 deletions
|
@ -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 a new issue