From 15c35d201ebaeff4f2701908def2f700ef0c00c7 Mon Sep 17 00:00:00 2001 From: Robert Bond Date: Mon, 13 Apr 2026 15:54:51 +0000 Subject: [PATCH] Merged PR 2244: added condition to fix log in journey in welsh if no account in crm added condition to fix log in journey in welsh if no account in crm Related work items: #22081, #22303 --- pages/_document.js | 10 +++++----- pages/api/auth/[...nextauth].js | 11 ++++++----- pages/auth/signin.js | 16 ++++++++++++++-- pages/auth/verify-request.js | 7 +++++-- 4 files changed, 30 insertions(+), 14 deletions(-) diff --git a/pages/_document.js b/pages/_document.js index cf1d68b7..0be14036 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -24,9 +24,9 @@ class MyDocument extends Document { const cookieObj = ctx.req.cookies.CookiePolicy || {}; //console.log("useGATracking: ", useGATracking); - setCookie(ctx, "pedw_locale", ctx.locale, { - path: "/", - }); + // setCookie(ctx, "pedw_locale", ctx.locale, { + // path: "/", + // }); const headers = ctx.req?.headers; const generatedNonce = headers?.["x-nonce"]; @@ -84,7 +84,7 @@ class MyDocument extends Document { __html: "window.switchDomain = '" + process.env.I18N_DOMAIN + - "'", + "'" }} />