src/Http/Response.php
public function redirectToRoute($route, array $params = [], $permanent = false)
    {
        $map = $this->app()->getRouteMap();
        $url = $map->assemble($route, $params);

        return $this->redirect($url, $permanent);
    }
public function redirectToRoute($route, array $params = [], $permanent = false)
    {
        $map = $this->app()->getRouteMap();
        $url = $map->assemble($route, $params);

        return $this->redirect($url, $permanent);
    }
public function redirectToRoute ( $ route , array $ params = [ ] , $ permanent = false ) { $ map = $ this -> app ( ) -> getRouteMap ( ) ; $ url = $ map -> assemble ( $ route , $ params ) ; return $ this -> redirect ( $ url , $ permanent ) ; }
Redirects to a named route.

@see \Tonis\Http\Response::redirect()
@param string $route
@param array $params
@param bool|false $permanent
@return ResponseInterface
Redirects to a named route .