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:
@@ -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 }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user