diff --git a/src/Extensions/GoogleSitemapExtension.php b/src/Extensions/GoogleSitemapExtension.php index 8d16e3e..2194928 100644 --- a/src/Extensions/GoogleSitemapExtension.php +++ b/src/Extensions/GoogleSitemapExtension.php @@ -33,7 +33,7 @@ public function canIncludeInGoogleSitemap() } } - $objHttp = parse_url($this->owner->AbsoluteLink(), PHP_URL_HOST); + $objHttp = parse_url($this->owner->AbsoluteLink() ?? '', PHP_URL_HOST); if ($objHttp != $hostHttp) { $can = false;