[Dancer-users] Bug in `forward`?

ambs ambs+dancer at perl-hackers.net
Fri Apr 15 18:02:42 CEST 2011


>> get '/ticket/:tid/assign' => sub {
>> my $tid = params->{tid};
>> return forward "/ticket/$tid/set?assign=1";
>> };


or yet... try this (didn't have the time to test for myself)

get '/ticket/:tid/assign' => sub {
    my $tid = params->{tid};
    params->{assign} = 1;
    return forward "/ticket/$tid/set";
};

Cheers



More information about the Dancer-users mailing list