src/Url.php
public function getPath($canonicalized = false) {

        return $canonicalized ? ('/' . $this->getCanonicalizedPath($this->path)) : $this->path;
    }
public function getPath($canonicalized = false) {

        return $canonicalized ? ('/' . $this->getCanonicalizedPath($this->path)) : $this->path;
    }
@param bool $canonicalized

@return string