]> git.mxchange.org Git - friendica.git/commitdiff
Adding fallback route in case of a non valid route
authorPhilipp Holzer <admin+github@philipp.info>
Wed, 29 May 2019 17:54:25 +0000 (19:54 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Wed, 29 May 2019 18:06:50 +0000 (20:06 +0200)
see https://github.com/friendica/friendica/issues/6918#issuecomment-491009954

mod/notifications.php

index ff954d4189250cba0cf88ccf33f01ade71ed9f35..8bc9a76c388efcaef89d1c787579d6a68a047700 100644 (file)
@@ -121,6 +121,9 @@ function notifications_content(App $a)
        } elseif (($a->argc > 1) && ($a->argv[1] == 'home')) {
                $notif_header = L10n::t('Home Notifications');
                $notifs = $nm->homeNotifs($show, $startrec, $perpage);
+       // fallback - redirect to main page
+       } else {
+               $a->internalRedirect('notifications');
        }
 
        // Set the pager