[BUGFIX] Fix typolink forceAbsoluteUrl
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / ContentObjectRenderer.php
index 0a85eca..3d73128 100644 (file)
@@ -6694,7 +6694,7 @@ class ContentObjectRenderer
                                 }
                             }
                             $urlParts = parse_url($LD['totalURL']);
                                 }
                             }
                             $urlParts = parse_url($LD['totalURL']);
-                            if ($urlParts['host'] === '') {
+                            if (empty($urlParts['host'])) {
                                 $LD['totalURL'] = $absoluteUrlScheme . '://' . $targetDomain . ($LD['totalURL'][0] === '/' ? '' : '/') . $LD['totalURL'];
                             }
                         }
                                 $LD['totalURL'] = $absoluteUrlScheme . '://' . $targetDomain . ($LD['totalURL'][0] === '/' ? '' : '/') . $LD['totalURL'];
                             }
                         }