src/includes/classes/Core/Utils/UrlCurrent.php
public function path(): string
    {
        if (($path = &$this->cacheKey(__FUNCTION__)) !== null) {
            return $path; // Cached this already.
        }
        $path        = (string) parse_url($this->uri(), PHP_URL_PATH);
        return $path = '/'.$this->c::mbLTrim($path, '/');
    }
public function path(): string
    {
        if (($path = &$this->cacheKey(__FUNCTION__)) !== null) {
            return $path; // Cached this already.
        }
        $path        = (string) parse_url($this->uri(), PHP_URL_PATH);
        return $path = '/'.$this->c::mbLTrim($path, '/');
    }
Current URI/path; with a leading `/`.

@since 150424 Initial release.

@return string Current URI/path; with a leading `/`.