Executes a redirection to the provided url (or return the target url).
public static redirect ( string $url, array $parameters = [], boolean $stay = false ) : string | null | ||
$url | string | The target url |
$parameters | array | Extra parameters to be passed as part of the url |
$stay | boolean | True if we want to stay (returns the url string) False to redirect |
return | string | null | $url |