[Catalyst] redirect() with parameters

Will Hawes info at whawes.co.uk
Mon Apr 24 19:13:51 CEST 2006


Not sure if this has been discussed before, but I think it would be 
convenient if $c->response->redirect() accepted a hashref of arguments 
to append to the redirect URI.

For example, if I want to redirect to 
"/action?param1=value1&param2=value2":

my $params = {
   param1 => 'value1',
   param2 => 'value2'
};

...

$c->response->redirect("/action", $status, $params );

Make sense?



More information about the Catalyst mailing list