From: Andreas Neustifter Date: Sun, 8 Jul 2018 19:20:18 +0000 (+0200) Subject: Redirect empty group to /contacts. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5765b8d498304e8bff0a6ea486138b62f4292043;p=friendica.git Redirect empty group to /contacts. The empty /group page is not really doing anything, redirect to /contacts. --- diff --git a/mod/group.php b/mod/group.php index 726616a90f..331b694874 100644 --- a/mod/group.php +++ b/mod/group.php @@ -85,6 +85,10 @@ function group_content(App $a) { } // Switch to text mode interface if we have more than 'n' contacts or group members + + if ($a->argc == 1) { + goaway(System::baseUrl() . '/contacts'); + } $switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit'); if (is_null($switchtotext)) {