src/Auth/HybridAuthAuthenticate.php
protected function _appendRedirectQueryString($url, $redirectQueryString)
    {
        if (!$redirectQueryString) {
            return $url;
        }

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

        return $url;
    }
protected function _appendRedirectQueryString($url, $redirectQueryString)
    {
        if (!$redirectQueryString) {
            return $url;
        }

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

        return $url;
    }
protected function _appendRedirectQueryString ( $ url , $ redirectQueryString ) { if ( ! $ redirectQueryString ) { return $ url ; } if ( is_array ( $ url ) ) { $ url [ '?' ] [ static :: QUERY_STRING_REDIRECT ] = $ redirectQueryString ; } else { $ char = strpos ( $ url , '?' ) === false ? '?' : '&' ; $ url .= $ char . static :: QUERY_STRING_REDIRECT . '=' . urlencode ( $ redirectQueryString ) ; } return $ url ; }
Append the "redirect" query string param to URL.

@param string|array $url URL
@param string $redirectQueryString Redirect query string
@return string URL
Append the redirect query string param to URL .