feat(MED-131): redirect to /home in case of no redirect path

This commit is contained in:
2025-08-04 11:49:03 +03:00
parent 7c3aa45ec7
commit 0d1e255fe2

View File

@@ -40,7 +40,7 @@ async function VerifyPage(props: Props) {
}
const nextPath = (await props.searchParams).next;
const redirectPath = nextPath ?? pathsConfig.app.home;
const redirectPath = !!nextPath && nextPath.length > 0 ? nextPath : pathsConfig.app.home;
return (
<MultiFactorChallengeContainer