public function getUrl($doRedirect = null)
    {
        if (null === $doRedirect) {
            $doRedirect = $this->useUrlRedirect;
        }

        if ($this->isRedirect() && $doRedirect) {
            return $this->getRedirect();
        }

        return $this->_url;
    }
public function getUrl($doRedirect = null)
    {
        if (null === $doRedirect) {
            $doRedirect = $this->useUrlRedirect;
        }

        if ($this->isRedirect() && $doRedirect) {
            return $this->getRedirect();
        }

        return $this->_url;
    }
public function getUrl ( $ doRedirect = null ) { if ( null === $ doRedirect ) { $ doRedirect = $ this -> useUrlRedirect ; } if ( $ this -> isRedirect ( ) && $ doRedirect ) { return $ this -> getRedirect ( ) ; } return $ this -> _url ; }
Returns the URL of the page.

@param boolean|null          $doRedirect         If true - returns redirect url (if exists), otherwise - current page url.

@return string
Returns the URL of the page .