[Catalyst] How to forward to a specific path

Julien Sobrier julien at sobrier.net
Sat Jan 2 07:04:32 GMT 2010


Exactly what I needed, thanks a lot.

On Fri, Jan 1, 2010 at 8:19 PM, Larry Leszczynski <larryl at emailplus.org>wro=
te:

> Hi Julien -
>
> On Fri, 01 Jan 2010 14:26 -0800, "Julien Sobrier" <julien at sobrier.net>
> wrote:
>
> > Hello, I'm try to do a forward to a path rather than a controller. For
> > example, if I get the url /foo/my/path, I want to redirect it to
> > /my/path which belongs to a different controller.
>
> In general you should be able to forward() to a path, not sure what is
> going on in your case without seeing the error message.  But forwarding
> to a path can get confused if that path is handled by a default action,
> if that is the case then this might help:
>
>   http://dev.catalyst.perl.org/wiki/wikicookbook/safedispatchusingpath
>
>
> HTH,
> Larry
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100101/20707=
1ed/attachment.htm


More information about the Catalyst mailing list