I am passing arguments to redirect_to like
$c->redirect_to(\'named\', foo => \'bar\');
or
$c->redirect_to(\'named,
Very verbose explanation how to pass and get param
$self is a mojolicious controller. In each case, we call $obj->param for a list of names, $obj->param("arg") for the value (or list of values):
$self->param -- params from route, post and get
$self->req->param -- params from post and get
$self->req->query_params -- params from get
$self->req->body_params -- params from post