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:
Robert Bond
2026-04-13 15:54:51 +00:00
parent 0de9268255
commit 15c35d201e
4 changed files with 30 additions and 14 deletions
+5 -2
View File
@@ -45,7 +45,10 @@ const SignIn = (props) => {
<div className="govuk-grid-row">
<div className="govuk-grid-column-two-thirds govuk-body">
{" "}
<Link href="/" legacyBehavior>
<Link
href="/"
locale={lang === "cy" ? "cy" : "en"}
>
{t("auth:auth-return-home-link-label")}
</Link>
</div>
@@ -61,7 +64,7 @@ const SignIn = (props) => {
export async function getServerSideProps(context) {
const csrfToken = await getCsrfToken(context);
return {
props: { csrfToken, locale: context.locale },
props: { csrfToken, locale: context.locale }
};
}