This commit is contained in:
Guy Sartorelli 2024-03-21 05:30:34 +13:00 committed by GitHub
commit 5d9d20e16c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -472,6 +472,7 @@ class Director implements TemplateGlobalProvider
// Default to respecting site base_url
$parent = self::absoluteBaseURL();
}
static::singleton()->extend('updateAbsoluteURLParent', $parent);
// Map empty urls to relative slash and join to base
if (empty($url) || $url === '.' || $url === './') {