diff --git a/library/Icinga/Web/Url.php b/library/Icinga/Web/Url.php index 3a07c9034..0a7996bc1 100644 --- a/library/Icinga/Web/Url.php +++ b/library/Icinga/Web/Url.php @@ -150,7 +150,7 @@ class Url : ''); $urlObject->setIsExternal(); } elseif ( - (isset($urlParts['host]']) && $urlParts['host'] !== $request->getServer('SERVER_NAME')) + (isset($urlParts['host']) && $urlParts['host'] !== $request->getServer('SERVER_NAME')) || (isset($urlParts['port']) && $urlParts['port'] != $request->getServer('SERVER_PORT')) ) { $baseUrl = $urlParts['host'] . (isset($urlParts['port']) ? (':' . $urlParts['port']) : '');