public function redirectTo($url = '', $parameters = array(), $stay = false)
    {
        assert('is_string($url)');
        assert('is_array($parameters)');

        if (empty($url) && isset($_REQUEST['RelayState'])) {
            $url = $_REQUEST['RelayState'];
        }

        return OneLogin_Saml2_Utils::redirect($url, $parameters, $stay);
    }
public function redirectTo($url = '', $parameters = array(), $stay = false)
    {
        assert('is_string($url)');
        assert('is_array($parameters)');

        if (empty($url) && isset($_REQUEST['RelayState'])) {
            $url = $_REQUEST['RelayState'];
        }

        return OneLogin_Saml2_Utils::redirect($url, $parameters, $stay);
    }
public function redirectTo ( $ url = '' , $ parameters = array ( ) , $ stay = false ) { assert ( 'is_string($url)' ) ; assert ( 'is_array($parameters)' ) ; if ( empty ( $ url ) && isset ( $ _REQUEST [ 'RelayState' ] ) ) { $ url = $ _REQUEST [ 'RelayState' ] ; } return OneLogin_Saml2_Utils :: redirect ( $ url , $ parameters , $ stay ) ; }
Redirects the user to the url past by parameter
or to the url that we defined in our SSO Request.

@param string $url The target URL to redirect the user.
@param array $parameters Extra parameters to be passed as part of the url
@param bool $stay True if we want to stay (returns the url string) False to redirect

@return string|null

@throws OneLogin_Saml2_Error
Redirects the user to the url past by parameter or to the url that we defined in our SSO Request .