[Catalyst] Has $c->response->redirect behaviour changed?
Alan Humphrey
alan.humphrey at comcast.net
Mon Jan 23 20:36:22 CET 2006
And that explains why I'm not seeing the problem.... I'd forgotten that I
had modified my default end to deal with redirects.
-----Original Message-----
From: catalyst-bounces at lists.rawmode.org
[mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Daniel
Westermann-Clark
Sent: Monday, January 23, 2006 11:28 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Has $c->response->redirect behaviour changed?
On 2006-01-23 19:07:11 +0000, Alex Kavanagh wrote:
> Overload process to not do the template if we are doing a redirect.
>
> It works, but is the right way to do it? Should I be doing
> something else?
You can do it that way, but the "recommended" way is to use
Catalyst::Plugin::DefaultEnd.
http://catalyst.perl.org/calendar/2005/8
Or, if you like complete control over your end method, you can add a
similar check for status 3xx.
--
Daniel Westermann-Clark
_______________________________________________
Catalyst mailing list
Catalyst at lists.rawmode.org
http://lists.rawmode.org/mailman/listinfo/catalyst
More information about the Catalyst
mailing list