diff --git a/Uri/Http.php b/Uri/Http.php index 40655c837..bc864dda4 100644 --- a/Uri/Http.php +++ b/Uri/Http.php @@ -247,6 +247,7 @@ final class Http implements UriInterface public function setRootPath(string $root) : void { $this->rootPath = \rtrim($root, '/'); + $this->base = $this->scheme . '://' . $this->host . ($this->port !== 80 ? ':' . $this->port : '') . $this->rootPath; } /**