Hi,

Does this look right?  I want to get the uri for any
current action whether its a :Local, :Path, has args
or not or is the endpoint in a chain with an arbitrary
number of args.

my $link = $c->uri_for( $c->action,
@{$c->request->arguments} ) 
         || $c->uri_for( $c->action, $c->request->captures );

Seems right from my testing but still a little fuzzy
on dealing with chained endpoints.

Thanks!

John

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to