public function addRelativeUrl($relativeUrl) {
    $this->pathTrailingSlash = S::endsWith($relativeUrl, '/');
    
    $parts = array_filter(explode('/', trim($relativeUrl, '/')));
    
    $this->path = array_merge($this->path, $parts);
    return $this;
  }