diff --git a/frontend/benefit/applicant/src/hooks/useLogin.ts b/frontend/benefit/applicant/src/hooks/useLogin.ts index 3de93a3579..d092d05e78 100644 --- a/frontend/benefit/applicant/src/hooks/useLogin.ts +++ b/frontend/benefit/applicant/src/hooks/useLogin.ts @@ -4,12 +4,14 @@ import { } from 'benefit-shared/backend-api/backend-api'; import { useRouter } from 'next/router'; import React from 'react'; +import useLocale from 'shared/hooks/useLocale'; const useLogin = (): (() => Promise) => { const router = useRouter(); + const locale = useLocale(); return React.useCallback( - () => router.push(getBackendUrl(BackendEndpoint.LOGIN)), - [router] + () => router.push(`${getBackendUrl(BackendEndpoint.LOGIN)}?lang=${locale}`), + [router, locale] ); };