From 88fab7b0c24e0b3a7640de9dfb6d0ef524fcd87d Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 23 May 2025 12:18:54 -0400 Subject: [PATCH] wip fix for signup issues --- frontend/apps/editor3d/app/src/signup.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/apps/editor3d/app/src/signup.tsx b/frontend/apps/editor3d/app/src/signup.tsx index d5046fcb5f..d34af63538 100644 --- a/frontend/apps/editor3d/app/src/signup.tsx +++ b/frontend/apps/editor3d/app/src/signup.tsx @@ -81,7 +81,10 @@ export default function SignUpScreen() { email: email!, password: password!, passwordConfirmation: passwordConfirmation!, - }).then((error) => { + }).then((response) => { + const redirectPath = searchParams.get("redirect"); + navigate(redirectPath ? redirectPath : "/"); + }).catch((error) => { console.log("Error occured", error); if (error) { addToast(ToastTypes.ERROR, error);