From: Florian Ragwitz Date: Sun, 10 May 2009 22:08:35 +0000 (+0000) Subject: Display / as the path spec for chained actions with empty path parts. X-Git-Tag: 5.80004~35 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f46240732bc1e71e45211a471ffc00e571e026b3;hp=0b90d0f738960847d3c999966fa5eb3fd900bc15 Display / as the path spec for chained actions with empty path parts. --- diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 585bf3f..b0e3f53 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -127,7 +127,7 @@ sub list { push(@rows, [ '', $name ]); } push(@rows, [ '', (@rows ? "=> " : '')."/${endpoint}" ]); - $rows[0][0] = join('/', '', @parts); + $rows[0][0] = join('/', '', @parts) || '/'; $paths->row(@$_) for @rows; }