From dd6ba3caa9d50673269ece44a43ef89bf42fc5c4 Mon Sep 17 00:00:00 2001 From: Stefan Van Dyck Date: Mon, 16 Dec 2024 17:18:40 +0100 Subject: [PATCH 1/2] Revert static front-end language cookie domain --- branding/app/js/i18next-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branding/app/js/i18next-config.js b/branding/app/js/i18next-config.js index 17148b74..6640b92f 100644 --- a/branding/app/js/i18next-config.js +++ b/branding/app/js/i18next-config.js @@ -54,7 +54,7 @@ const detectorOptions = { lookupCookie: 'vbp-lang', cookieMinutes: 525600, // a year cookiePath: '/', - cookieDomain: settings.mainDomain, + cookieDomain: `${settings.mainDomain}`, cookieOptions: { path: '/', sameSite: 'strict', secure: settings.mainLAUrl.startsWith('https') }, caches: ['cookie'], excludeCacheFor: ['cimode'] From 57e47a66e3c21651647e9c114a325803af89b864 Mon Sep 17 00:00:00 2001 From: Stefan Van Dyck Date: Mon, 16 Dec 2024 17:19:04 +0100 Subject: [PATCH 2/2] Revert static front-end language cookie domain --- branding/app/js/i18next-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branding/app/js/i18next-config.js b/branding/app/js/i18next-config.js index 6640b92f..938f0b33 100644 --- a/branding/app/js/i18next-config.js +++ b/branding/app/js/i18next-config.js @@ -54,7 +54,7 @@ const detectorOptions = { lookupCookie: 'vbp-lang', cookieMinutes: 525600, // a year cookiePath: '/', - cookieDomain: `${settings.mainDomain}`, + cookieDomain: `.${settings.mainDomain}`, cookieOptions: { path: '/', sameSite: 'strict', secure: settings.mainLAUrl.startsWith('https') }, caches: ['cookie'], excludeCacheFor: ['cimode']