fixed helper
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index 98a1f92..af59ea2 100644 (file)
@@ -689,6 +689,7 @@ sub set_action {
             $path     = $1;
             $absolute = 1;
         }
+        $absolute = 1 if $flags{global};
         my $name = $absolute ? $path : "$prefix/$path";
         $c->actions->{plain}->{$name} = [ $namespace, $code ];
         $c->log->debug(qq|Public "/$name" is "/$forward"|) if $c->debug;