[Catalyst] preserve the URL in browser box
Matt S Trout
dbix-class at trout.me.uk
Wed Jan 18 17:44:17 CET 2006
On Wed, Jan 18, 2006 at 08:25:19PM +0200, raptor wrote:
> hi,
>
> I have the following scenario :
>
> sub additem {
> ......
> $c->forward('listitems');
> }
>
> sub listitems {
> ......
> $c->forward('...V:TT');
> }
>
> sub postitem {
> ......
> $c->forward('additem');
> }
>
>
> postitem is called from a <FORM> in additem page.
> Now the problem is that after posting an item the address in the browser url box is left as 'postitem', but I want it to be 'additem'.
> Is it possible if yes how ?
forward is internal within the Catalyst app.
$c->res->redirect(...)
will redirect the browser.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list