protected function getReturnUrl()
    {
        $backUrl = $this->getRequest()->getSession()->get('oauth2.backurl');
        if (!$backUrl || !Director::is_site_url($backUrl)) {
            $backUrl = Director::absoluteBaseURL();
        }

        return $backUrl;
    }
protected function getReturnUrl()
    {
        $backUrl = $this->getRequest()->getSession()->get('oauth2.backurl');
        if (!$backUrl || !Director::is_site_url($backUrl)) {
            $backUrl = Director::absoluteBaseURL();
        }

        return $backUrl;
    }
protected function getReturnUrl ( ) { $ backUrl = $ this -> getRequest ( ) -> getSession ( ) -> get ( 'oauth2.backurl' ) ; if ( ! $ backUrl || ! Director :: is_site_url ( $ backUrl ) ) { $ backUrl = Director :: absoluteBaseURL ( ) ; } return $ backUrl ; }
Get the return URL previously stored in session

@return string
Get the return URL previously stored in session