From fb97570b96f8357a7c6778ee50af9c06a3bfc8b5 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 11 Apr 2023 19:02:44 +0200 Subject: [PATCH] =?UTF-8?q?redirection=20pour=20=C3=A9viter=20une=20404=20?= =?UTF-8?q?d'une=20autre=20langue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index 33bf3572..37663a02 100644 --- a/core/core.php +++ b/core/core.php @@ -394,7 +394,8 @@ class common setcookie('ZWII_CONTENT', $key, time() + 3600, helper::baseUrl(false, false), '', true, helper::isHttps()); self::$i18nContent = $key; \setlocale(LC_ALL, self::$i18nContent . '.UTF8'); - header('Refresh:0; url=' . $_SERVER['PHP_SELF']); + header('Refresh:0; url=' . helper::baseUrl() . $this->getUrl(0)); + exit(); } } }