From 0d1e255fe2a8efe8cad3e7f3346a96162bbea052 Mon Sep 17 00:00:00 2001 From: k4rli Date: Mon, 4 Aug 2025 11:49:03 +0300 Subject: [PATCH] feat(MED-131): redirect to /home in case of no redirect path --- app/auth/verify/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/auth/verify/page.tsx b/app/auth/verify/page.tsx index 8d275bf..2bddfa4 100644 --- a/app/auth/verify/page.tsx +++ b/app/auth/verify/page.tsx @@ -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 (