protected function _getRedirectUrl(ServerRequest $request)
    {
        $redirectUrl = $request->getSession()->read('SocialAuth.redirectUrl');
        if ($redirectUrl) {
            $request->getSession()->delete('SocialAuth.redirectUrl');

            return $redirectUrl;
        }

        return $this->getConfig('loginRedirect');
    }
protected function _getRedirectUrl(ServerRequest $request)
    {
        $redirectUrl = $request->getSession()->read('SocialAuth.redirectUrl');
        if ($redirectUrl) {
            $request->getSession()->delete('SocialAuth.redirectUrl');

            return $redirectUrl;
        }

        return $this->getConfig('loginRedirect');
    }
protected function _getRedirectUrl ( ServerRequest $ request ) { $ redirectUrl = $ request -> getSession ( ) -> read ( 'SocialAuth.redirectUrl' ) ; if ( $ redirectUrl ) { $ request -> getSession ( ) -> delete ( 'SocialAuth.redirectUrl' ) ; return $ redirectUrl ; } return $ this -> getConfig ( 'loginRedirect' ) ; }
Get URL to redirect to after authentication.

@param \Cake\Http\ServerRequest $request Request instance.

@return string|array
Get URL to redirect to after authentication .