Handle a controller where the namespace is the empty string nicely.
[catagits/CatalystX-Routes.git] / lib / CatalystX / Routes.pm
index 67e43ef..ccd2fa7 100644 (file)
@@ -112,6 +112,7 @@ sub _process_args {
             unless ( $part =~ s{^/}{} ) {
                 $part = join q{/},
                     $meta->name()->action_namespace('FakeConfig'), $part;
+                $part =~ s{^/}{};
             }
         }