Display / as the path spec for chained actions with empty path parts.
Florian Ragwitz [Sun, 10 May 2009 22:08:35 +0000 (22:08 +0000)]
lib/Catalyst/DispatchType/Chained.pm

index 585bf3f..b0e3f53 100644 (file)
@@ -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;
     }