1 package Catalyst::DispatchType::Default;
4 use base qw/Catalyst::DispatchType/;
7 my ( $self, $c, $path ) = @_;
8 return if $path =~ m!/!; # Not at root yet, wait for it ...
9 my $result = @{ $c->get_action( 'default', $c->req->path, 1 ) || [] }[-1];
11 # Find default on namespace or super
13 $c->action( $result->[0] );
14 $c->namespace( $c->req->path );
15 $c->req->action('default');