[Catalyst] redirection hint?
Bill Moseley
moseley at hank.org
Wed Jan 4 20:48:06 CET 2006
On Wed, Jan 04, 2006 at 02:40:48PM -0500, Joe Landman wrote:
> Ok, solved.
>
> The redirection is not to the url, but to the private name. So if you
> have a
>
> sub something : LocalRegex ('^waahoo/(a|b|c)') {
> #...
> $c->detach('***');
> }
>
> sub elsewhere : LocalRegex ('^waahoo/doit') {
> #...
> }
>
> and you want the end of this sub to hop over and execute "elsewhere",
> then the *** needs to be "elsewhere" and not "waahoo/doit". You are
> redirecting to the internal private names, not the public URIs. Thats
> fine, just needed to know that.
You might also look into the SubRequest plugin. If you forward or
detach to another action and try and you use $c->uri_for to create
links then they will be based on the original action not where you
forwarded to. If you use a subrequest then it's more like an internal
redirect.
--
Bill Moseley
moseley at hank.org
More information about the Catalyst
mailing list