Display / as the path spec for chained actions with empty path parts.
[catagits/Catalyst-Runtime.git] / 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;
     }