From 806f81d2f9fed037bbd292b26e3baaef943a0d07 Mon Sep 17 00:00:00 2001 From: Viktor Fomin Date: Tue, 2 Jul 2024 17:44:35 +0300 Subject: [PATCH] Fix Bug 68949 Before opening Wizard, Login page opens --- packages/login/src/app/layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/login/src/app/layout.tsx b/packages/login/src/app/layout.tsx index a30a1f8aa8..f4204c04c8 100644 --- a/packages/login/src/app/layout.tsx +++ b/packages/login/src/app/layout.tsx @@ -25,7 +25,7 @@ // International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode import { cookies, headers } from "next/headers"; - +import { redirect } from "next/navigation"; import { Toast } from "@docspace/shared/components/toast"; import { getBaseUrl } from "@docspace/shared/utils/next-ssr-helper"; import { TenantStatus, ThemeKeys } from "@docspace/shared/enums"; @@ -83,7 +83,7 @@ export default async function RootLayout({ } if (typeof settings !== "string" && settings?.wizardToken) { - redirectUrl = `wizard`; + redirect(`wizard`); } if (