protected function _loginActionRedirectUrl()
    {
        $urlToRedirectBackTo = $this->_getUrlToRedirectBackTo();

        $loginAction = $this->_config['loginAction'];
        if ($urlToRedirectBackTo === '/') {
            return $loginAction;
        }

        if (is_array($loginAction)) {
            $loginAction['?'][static::QUERY_STRING_REDIRECT] = $urlToRedirectBackTo;
        } else {
            $char = strpos($loginAction, '?') === false ? '?' : '&';
            $loginAction .= $char . static::QUERY_STRING_REDIRECT . '=' . urlencode($urlToRedirectBackTo);
        }

        return $loginAction;
    }
protected function _loginActionRedirectUrl()
    {
        $urlToRedirectBackTo = $this->_getUrlToRedirectBackTo();

        $loginAction = $this->_config['loginAction'];
        if ($urlToRedirectBackTo === '/') {
            return $loginAction;
        }

        if (is_array($loginAction)) {
            $loginAction['?'][static::QUERY_STRING_REDIRECT] = $urlToRedirectBackTo;
        } else {
            $char = strpos($loginAction, '?') === false ? '?' : '&';
            $loginAction .= $char . static::QUERY_STRING_REDIRECT . '=' . urlencode($urlToRedirectBackTo);
        }

        return $loginAction;
    }
protected function _loginActionRedirectUrl ( ) { $ urlToRedirectBackTo = $ this -> _getUrlToRedirectBackTo ( ) ; $ loginAction = $ this -> _config [ 'loginAction' ] ; if ( $ urlToRedirectBackTo === '/' ) { return $ loginAction ; } if ( is_array ( $ loginAction ) ) { $ loginAction [ '?' ] [ static :: QUERY_STRING_REDIRECT ] = $ urlToRedirectBackTo ; } else { $ char = strpos ( $ loginAction , '?' ) === false ? '?' : '&' ; $ loginAction .= $ char . static :: QUERY_STRING_REDIRECT . '=' . urlencode ( $ urlToRedirectBackTo ) ; } return $ loginAction ; }
Returns the URL of the login action to redirect to.

This includes the redirect query string if applicable.

@return array|string
Returns the URL of the login action to redirect to .