/** * {@inheritdoc} */ public function addPath($relativePath) { $this->_assertNotFrozen(); if ($this->getPath() === '/') { $this->_delegateUrl->setPath(''); } $this->_delegateUrl->addPath($relativePath); return $this; }