src/mako/http/routing/traits/ControllerHelperTrait.php
protected function redirectResponse(string $location, array $routeParams = [], array $queryParams = [], string $separator = '&', $language = true): Redirect
	{
		if($this->routes->hasNamedRoute($location))
		{
			$location = $this->urlBuilder->toRoute($location, $routeParams, $queryParams, $separator, $language);
		}

		return new Redirect($location);
	}
protected function redirectResponse(string $location, array $routeParams = [], array $queryParams = [], string $separator = '&', $language = true): Redirect
	{
		if($this->routes->hasNamedRoute($location))
		{
			$location = $this->urlBuilder->toRoute($location, $routeParams, $queryParams, $separator, $language);
		}

		return new Redirect($location);
	}
protected function redirectResponse ( string $ location , array $ routeParams = [ ] , array $ queryParams = [ ] , string $ separator = '&' , $ language = true ) : Redirect { if ( $ this -> routes -> hasNamedRoute ( $ location ) ) { $ location = $ this -> urlBuilder -> toRoute ( $ location , $ routeParams , $ queryParams , $ separator , $ language ) ; } return new Redirect ( $ location ) ; }
Returns a redirect response container.

@param  string                               $location    Location
@param  array                                $routeParams Route parameters
@param  array                                $queryParams Associative array used to build URL-encoded query string
@param  string                               $separator   Argument separator
@param  mixed                                $language    Request language
@return \mako\http\response\senders\Redirect
Returns a redirect response container .