From ed2d38670d2a7d94ca99a71a99152d65bd2541f5 Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Thu, 15 Aug 2024 21:13:35 +0800 Subject: [PATCH] chore: open Stripe payment management page in new tab --- packages/console/src/hooks/use-subscribe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/hooks/use-subscribe.ts b/packages/console/src/hooks/use-subscribe.ts index 50bf3df76..ccd759245 100644 --- a/packages/console/src/hooks/use-subscribe.ts +++ b/packages/console/src/hooks/use-subscribe.ts @@ -146,7 +146,7 @@ const useSubscribe = () => { }, }); - window.location.assign(redirectUri); + window.open(redirectUri, '_blank', 'noopener,noreferrer'); } catch (error: unknown) { void toastResponseError(error); }