src/Traits/RedirectTrait.php
protected function _redirectUrl($default = null)
    {
        $request = $this->_request();

        if (!empty($request->getData('_redirect_url'))) {
            return $request->getData('_redirect_url');
        }
        if (!empty($request->getQuery('_redirect_url'))) {
            return $request->getQuery('_redirect_url');
        }
        if (!empty($request->getData('redirect_url'))) {
            return $request->getData('redirect_url');
        }
        if (!empty($request->getQuery('redirect_url'))) {
            return $request->getQuery('redirect_url');
        }

        return $default;
    }
protected function _redirectUrl($default = null)
    {
        $request = $this->_request();

        if (!empty($request->getData('_redirect_url'))) {
            return $request->getData('_redirect_url');
        }
        if (!empty($request->getQuery('_redirect_url'))) {
            return $request->getQuery('_redirect_url');
        }
        if (!empty($request->getData('redirect_url'))) {
            return $request->getData('redirect_url');
        }
        if (!empty($request->getQuery('redirect_url'))) {
            return $request->getQuery('redirect_url');
        }

        return $default;
    }
protected function _redirectUrl ( $ default = null ) { $ request = $ this -> _request ( ) ; if ( ! empty ( $ request -> getData ( '_redirect_url' ) ) ) { return $ request -> getData ( '_redirect_url' ) ; } if ( ! empty ( $ request -> getQuery ( '_redirect_url' ) ) ) { return $ request -> getQuery ( '_redirect_url' ) ; } if ( ! empty ( $ request -> getData ( 'redirect_url' ) ) ) { return $ request -> getData ( 'redirect_url' ) ; } if ( ! empty ( $ request -> getQuery ( 'redirect_url' ) ) ) { return $ request -> getQuery ( 'redirect_url' ) ; } return $ default ; }
Returns the _redirect_url for this request.

@param string|null $default Default URL to use if _redirect_url if not found in request or data.
@return mixed
Returns the _redirect_url for this request .