Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Sessingø a2843d5b1e Merge pull request #702 from skipperbent/v5-development
Version 5.4.1.7
2023-12-11 22:48:25 +01:00
Simon 0634ba79dc Fixed getUrl() not working for home urls. 2023-12-11 22:45:14 +01:00
+2 -1
View File
@@ -72,7 +72,7 @@ class Url implements JsonSerializable
public function parse(?string $url, bool $setOriginalPath = false): self
{
if ($url !== null && $url !== '/') {
if ($url !== null) {
$data = $this->parseUrl($url);
$this->scheme = $data['scheme'] ?? null;
@@ -95,6 +95,7 @@ class Url implements JsonSerializable
$this->setQueryString($data['query']);
}
}
return $this;
}