<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>We were trying to use catalyst 5.90010 to run a webapp, and almost everything is totally lovely, apart from a few redirects.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>In version 5.90006 it all seems to be working well.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The rewrite is along the lines of:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>sub exampleRedirect :Path( &quot;/oldPath&quot; ) Args(0)<o:p></o:p></p><p class=MsoNormal>{<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; my ( $self, $c ) = @_;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; my %data = %{ $c -&gt; req -&gt; params };<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp; &nbsp;# &#8230; actions on %data removed<o:p></o:p></p><p class=MsoNormal>&nbsp; &nbsp;&nbsp;my $url =&nbsp; $c -&gt; uri_for( $c -&gt; controller('This') -&gt; action_for('newSub'), \%data );<o:p></o:p></p><p class=MsoNormal>&nbsp; &nbsp;&nbsp;$c -&gt; response -&gt; redirect( $url , 301 ) ;<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>sub newSub :Path(&#8220;/this/someOtherPath&#8221;) Args(0)<o:p></o:p></p><p class=MsoNormal>{<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>When the server is called, on 5.90006, for <a href="http://somedomain/oldPath?cheese=nice">http://somedomain/oldPath?cheese=nice</a>, $url becomes <a href="http://somedomain/this/someOtherPath?cheese=nice">http://somedomain/this/someOtherPath?cheese=nice</a><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>On 5.9.0010, the same url becomes <a href="http://somedomain/oldPath/this/someOtherPath?cheese=nice">http://somedomain/oldPath/this/someOtherPath?cheese=nice</a><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Obviously checked http headers and output $url above.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Can anyone shed some light on this? It&#8217;s probably something stupid I&#8217;ve done, as I cannot find much in google.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Steve<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>