[Catalyst] local redirect ?

raptor raptor at tvskat.net
Sun Jan 22 21:44:44 CET 2006


I have a controller called Admin.pm then inside i have :

sub list : Local {
 ...cdbi->retrieve_all();
 $c->forward("...::View::TT");
}

sub remove : Local {
 ....cdbi->delete();
 $c->res->redirect('list');
}


but when remove is executed I get error, regarding delete() which executed successfully! as I check the list later.
If i change this : 
 $c->res->redirect('list');
to this :
 $c->res->redirect('/admin/list');
everything is ok.
In the first case redirect goes to /admin/remove/list

any idea? or I'm doing something stupid.

tia




More information about the Catalyst mailing list