lithium\action\Request::_url PHP Method

_url() protected method

Extract the url from REQUEST_URI && PHP_SELF environment variables.
protected _url ( $url = null ) : string
return string
    protected function _url($url = null)
    {
        if ($url !== null) {
            return '/' . trim($url, '/');
        } elseif ($uri = $this->env('REQUEST_URI')) {
            list($uri) = explode('?', $uri, 2);
            $base = '/^' . preg_quote($this->_base, '/') . '/';
            return '/' . trim(preg_replace($base, '', $uri), '/') ?: '/';
        }
        return '/';
    }