diff --git a/src/client/app/components/router/ErrorComponent.tsx b/src/client/app/components/router/ErrorComponent.tsx index a95176c78..bc58cbcee 100644 --- a/src/client/app/components/router/ErrorComponent.tsx +++ b/src/client/app/components/router/ErrorComponent.tsx @@ -13,6 +13,10 @@ import translate from '../../utils/translate'; */ export default function ErrorComponent() { const nav = useNavigate(); + const refreshPage = () => { + nav('/'); + window.location.reload(); + }; return ( {/* Pass div as child prop to AppLayout */} @@ -31,6 +35,15 @@ export default function ErrorComponent() { > {translate('return.dashboard')} +

+ {translate('page.user.refresh.directions')} +

+
diff --git a/src/client/app/translations/data.ts b/src/client/app/translations/data.ts index 0b21ce823..a2983be0d 100644 --- a/src/client/app/translations/data.ts +++ b/src/client/app/translations/data.ts @@ -380,6 +380,8 @@ const LocaleTranslationData = { "options": "Options", "page.choice.login": "Page choices & login", "page.choice.logout": "Page choices & logout", + "page.restart.button": "Restart OED session", + "page.user.refresh.directions": "If clicking the \"Return to Dashboard\" button does not work then please click the button below to restart your OED session\u{26A1}", "password": "Password", "password.confirm": "Confirm password", "per.day": "Per Day", @@ -876,6 +878,8 @@ const LocaleTranslationData = { "options": "Options", "page.choice.login": "Page choices & login\u{26A1}", "page.choice.logout": "Page choices & logout\u{26A1}", + "page.restart.button": "Restart OED session\u{26A1}", + "page.user.refresh.directions": "If clicking the \"Return to Dashboard\" button does not work then please click the button below to restart your OED session\u{26A1}", "password": "Mot de passe", "password.confirm": "Confirm password\u{26A1}", "per.day": "Per Day\u{26A1}", @@ -1372,6 +1376,8 @@ const LocaleTranslationData = { "options": "Opciones", "page.choice.login": "Selección de página y inicio de sesión", "page.choice.logout": "Selección de página y fin de sesión", + "page.restart.button": "Restart OED session\u{26A1}", + "page.user.refresh.directions": "If clicking the \"Return to Dashboard\" button does not work then please click the button below to restart your OED session\u{26A1}", "password": "Contraseña", "password.confirm": "Confirmar contraseña", "per.day": "Por día",