protected function extractAbsolutePath($base)
    {
        if ($this->getHost()) {
            return $this->path;
        }
        if (! $this->isRelativePath($this->path)) {
            return $this->path;
        }
        if ($this->path) {
            return $base->getBasePath() . $this->path;
        }

        return $base->getPath();
    }