[Catalyst] Trouble with Chained Actions and Redirects?

Ash Berlin ash at cpan.org
Mon Sep 18 23:46:06 CEST 2006


John Napiorkowski wrote:
> Hi,
>
> I have a controller with some chained actions.  One of
> the actions (not an endpoint) will redirect given a
> certain value for the arguments.  However I find that
> this doesn't stop the chain from completing.  I still
> get a line about the redirect in the log, but the
> endpoint in that chain still activates.
>
> I find that this doesn't happen when I use $c->detach,
> although in this circumstance detach is not the best
> use for me.
>
> Has anyone run into this before and found a way around
> it?
>
> Thanks!
>
> --john
>
>   
Just how are you redirecting?

And whats wrong with:

$c->res->redirect($url);
$c->detach('/end');

Ash




More information about the Catalyst mailing list