From c461299fbcc488394a3ac2c6f077e59d07a9ecd8 Mon Sep 17 00:00:00 2001 From: Mark Hamstra Date: Thu, 11 Mar 2021 23:39:28 +0100 Subject: [PATCH] Fix generating lingua.selector url to other language on HTTPS --- .../lingua/elements/snippets/lingua.selector.snippet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/lingua/elements/snippets/lingua.selector.snippet.php b/core/components/lingua/elements/snippets/lingua.selector.snippet.php index 27a28bf..e1d5ac9 100644 --- a/core/components/lingua/elements/snippets/lingua.selector.snippet.php +++ b/core/components/lingua/elements/snippets/lingua.selector.snippet.php @@ -51,7 +51,7 @@ $pageURL .= "s"; } $pageURL .= "://"; -if ($_SERVER["SERVER_PORT"] !== "80") { +if ($_SERVER["SERVER_PORT"] !== "80" && $_SERVER["SERVER_PORT"] !== "443") { $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];