[Catalyst] preserve the URL in browser box
Carl Franks
fireartist at gmail.com
Wed Jan 18 17:32:56 CET 2006
On 18/01/06, raptor <raptor at tvskat.net> wrote:
> 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'.
forward() happens internally in Catalyst, in a single CGI request, you want:
sub postitem {
......
$c->res->redirect('/additem');
}
which will tell the browser to visit the new address.
More information about the Catalyst
mailing list