small bugfix for parse_url

This commit is contained in:
Roman 2024-06-07 12:16:17 +02:00
parent 7c6e9b3643
commit d2c43c70b0

@ -96,7 +96,7 @@ class TemplateDocument extends Document {
"name" => $settings->getSiteName(),
"url" => [
"base" => $settings->getBaseUrl(),
"path" => $urlParts["path"],
"path" => $urlParts["path"] ?? "" ,
"query" => $urlParts["query"] ?? "",
"fragment" => $urlParts["fragment"] ?? ""
],