[Catalyst] How to forward to a specific path
Julien Sobrier
julien at sobrier.net
Fri Jan 1 22:26:37 GMT 2010
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 the controllfer Foo, I tried something like
this:
sub foo :Path :Args {
my ($self, $c) =3D @_
$c->forward("/" . join("/", @{$c->req->args}); # $c->forward("/my/path");
}
I cannot fin the righrt command to forward to any path.
Thank you
Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100101/84703=
904/attachment.htm
More information about the Catalyst
mailing list