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
This commit is contained in:
+5
-5
@@ -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 +
|
||||
"'",
|
||||
"'"
|
||||
}}
|
||||
/>
|
||||
<script
|
||||
@@ -93,7 +93,7 @@ class MyDocument extends Document {
|
||||
__html:
|
||||
"window.apiRoot = '" +
|
||||
process.env.API_ROOT +
|
||||
"'",
|
||||
"'"
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user