public function uri($query = false)
    {
        return rtrim($this->baseName(), '/') . '/' . ltrim($this->path($query), '/');
    }
public function uri($query = false)
    {
        return rtrim($this->baseName(), '/') . '/' . ltrim($this->path($query), '/');
    }
public function uri ( $ query = false ) { return rtrim ( $ this -> baseName ( ) , '/' ) . '/' . ltrim ( $ this -> path ( $ query ) , '/' ) ; }
Returns requested URI

@param bool $query

@return string
Returns requested URI