<?xml version="1.0" encoding="windows-1252"?>
<node id="617166" title="Re: about catalyst response redirect" created="2007-05-24 01:42:29" updated="2007-05-23 21:42:29">
<type id="11">
note</type>
<author id="474411">
chargrill</author>
<data>
<field name="doctext">
&lt;p&gt;I don't think uri_for works like that.  From the docs:&lt;/p&gt;
&lt;dt&gt;
$c-&gt;uri_for( $path, @args?, \%query_values? )
&lt;/dt&gt;
&lt;dd&gt;
Merges path with $c-&gt;request-&gt;base for absolute URIs and with $c-&gt;namespace for relative URIs, then returns a normalized URI object. If any args are passed, they are added at the end of the path. If the last argument to uri_for is a hash reference, it is assumed to contain GET parameter key/value pairs, which will be appended to the URI in standard fashion.
&lt;/dd&gt;
&lt;p&gt;So maybe something like:&lt;/p&gt;
&lt;c&gt;
my $itemid = 16;
my $path = "/lender/loan/loan_details";
$c-&gt;response-&gt;redirect( $c-&gt;uri_for( $path, { itemid =&gt; $itemid, Display =&gt; 1 } );
&lt;/c&gt;
&lt;p&gt;Completely untested and assuming the rest of your code is correct.  To test that, try just: &lt;c&gt;$c-&gt;response-&gt;redirect( "/lender/loan/loan_details?itemid=$itemid&amp;Display" );&lt;/c&gt; to make sure that part works.&lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-474411"&gt;


&lt;br&gt;&lt;br&gt;
--chargrill
&lt;hr&gt;
&lt;font size=2&gt;
&lt;code&gt;
s**lil*;  $*=join'',sort split q**;  s;.*;grr; &amp;&amp;s+(.(.)).+$2$1+; $; =
qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
&lt;/code&gt;
&lt;/font&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
617165</field>
<field name="parent_node">
617165</field>
</data>
</node>
