Hi. I have a problem. Why does not it work redirect? ``` $app = new \Slim\App(); $app->get('/', function ($request, $response, $args) { return $response->withRedirect($this->router->pathFor('name'));//not work }); $app->get('/auth/signup', function ($request, $response, $args) { return 'Hello'; })->setName('name'); $app -> run(); ``` or ``` $app->get('/', function ($req, $res, $args) { return $res->withStatus(302)->withHeader('Location', '/auth/signup'); //Not work }); ``` Thanks!,
Hi.
I have a problem.
Why does not it work redirect?
or
Thanks!,