Revert "FIX Revert adding extension hook"

This commit is contained in:
Guy Sartorelli 2022-04-26 12:00:34 +12:00 committed by GitHub
parent 2411a83d5d
commit 2067573e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -470,6 +470,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 === './') {