[Catalyst] uri_for problem

Thomas Klausner domm at cpan.org
Wed Mar 5 10:05:25 GMT 2008


Hi!

On Wed, Mar 05, 2008 at 10:50:07AM +0100, Emmanuel Quevillon wrote:

> I am trying to build some url from TT using uri_for sub but I encounter 
> some problem with it.
>
> When in my tt I have :
> [%- ourl = Catalyst.uri_for('/search?stype=seqid&query=') -%]
>
> when I click on it, I get an url that looks like :
> search%5C%3Fstype=seqid&query=
>
> Is there a way to get the proper url produce in the HTML page without 
> '%5C%3F' ?

The docs say:
  $c->uri_for( $path, @args?, \%query_values? )

translated to TT that should read
  [%  Catalyst.uri_for('search', { stype=>'seqid' } ) %]
(I think, but I constantly mix up how to defines hashes in TT)


-- 
#!/usr/bin/perl                              http://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}



More information about the Catalyst mailing list