From fb406a81e2c2ab6c7a09a8ff009a692844f46ac5 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 29 Sep 2011 22:59:18 -0400 Subject: [PATCH] allow / at end of group, user page --- lib/router.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/router.php b/lib/router.php index 09121c561c..8798db89e0 100644 --- a/lib/router.php +++ b/lib/router.php @@ -334,6 +334,10 @@ class Router array('action' => 'showgroup'), array('nickname' => Nickname::DISPLAY_FMT)); + $m->connect('group/:nickname/', + array('action' => 'showgroup'), + array('nickname' => Nickname::DISPLAY_FMT)); + $m->connect('group/', array('action' => 'groups')); $m->connect('group', array('action' => 'groups')); $m->connect('groups/', array('action' => 'groups')); @@ -1068,6 +1072,10 @@ class Router $m->connect(':nickname', array('action' => 'showstream'), array('nickname' => Nickname::DISPLAY_FMT)); + + $m->connect(':nickname/', + array('action' => 'showstream'), + array('nickname' => Nickname::DISPLAY_FMT)); } // AtomPub API -- 2.39.5