From 605daf5026164c0f80876ce853bff5dec11f1524 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 9 Dec 2022 10:02:43 +1300 Subject: [PATCH] FIX Cast absoluteUrl() argument to string --- code/Model/SiteTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index 1ab94186..f0e384b7 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -637,7 +637,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi if ($this->hasMethod('alternateAbsoluteLink')) { return $this->alternateAbsoluteLink($action); } else { - return Director::absoluteURL($this->Link($action)); + return Director::absoluteURL((string) $this->Link($action)); } }