From: Philipp Holzer Date: Wed, 29 May 2019 17:54:25 +0000 (+0200) Subject: Adding fallback route in case of a non valid route X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30151357503764feecdcdc1443e475bcaef7bd1c;p=friendica.git Adding fallback route in case of a non valid route see https://github.com/friendica/friendica/issues/6918#issuecomment-491009954 --- diff --git a/mod/notifications.php b/mod/notifications.php index ff954d4189..8bc9a76c38 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -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