diff --git a/src/authentication/components/AuthenticationCallback.tsx b/src/authentication/components/AuthenticationCallback.tsx index 810d18d1..ad6458df 100644 --- a/src/authentication/components/AuthenticationCallback.tsx +++ b/src/authentication/components/AuthenticationCallback.tsx @@ -11,7 +11,9 @@ const AuthenticationCallbackComponent: FC = ({ children }) => { const frontPageUrl = getFrontPageUrl().href; try { const user = await USER_MANAGER.signinCallback(); - router.push(user.state || frontPageUrl); + // @ts-ignore + const url: string = user?.state ?? frontPageUrl; + router.push(url); } catch (err) { router.push(frontPageUrl); }