Changed default match to use path instead of result
Andy Grundman [Sun, 23 Oct 2005 17:09:19 +0000 (17:09 +0000)]
lib/Catalyst/DispatchType/Default.pm

index aa32f9d..faffca1 100644 (file)
@@ -32,7 +32,7 @@ sub match {
         $c->namespace( $c->req->path );
         $c->req->action('default');
         # default methods receive the controller name as the first argument
-        unshift @{ $c->req->args }, ( split /\//, $result->[0], 2 )[0];
+        unshift @{ $c->req->args }, $path;
         $c->req->match('');
         return 1;
     }