]> git.mxchange.org Git - friendica.git/commitdiff
Issue 12338: Use redirect for "about" and "about/more"
authorMichael <heluecht@pirati.ca>
Sun, 11 Dec 2022 19:50:10 +0000 (19:50 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 11 Dec 2022 19:50:10 +0000 (19:50 +0000)
src/App.php
static/routes.config.php

index 0d4e8880dd9d8373db64f8b0a60df3cd7325da83..d4120bcc2de922a265f3978bb095d97d6b22e3a7 100644 (file)
@@ -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;
 
index e3c87f1502e896ad54a2a24d2ff364777c431567..f33cd9581abe6effbbceaa4c26bc4807898816f2 100644 (file)
@@ -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]],