From 80740f646c62e70702f6fa581a19bfb6e71463fd Mon Sep 17 00:00:00 2001 From: Vikrant Gupta Date: Wed, 8 Jan 2025 11:26:18 +0530 Subject: [PATCH] fix(portal): use window.location.origin instead of the window.location.href (#6770) * fix(portal): use window.location.origin instead of the whole URL * fix(portal): use window.location.origin instead of the whole URL --- frontend/src/container/AppLayout/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/container/AppLayout/index.tsx b/frontend/src/container/AppLayout/index.tsx index 7791ae74a7..64140567ff 100644 --- a/frontend/src/container/AppLayout/index.tsx +++ b/frontend/src/container/AppLayout/index.tsx @@ -272,8 +272,8 @@ function AppLayout(props: AppLayoutProps): JSX.Element { const handleFailedPayment = (): void => { manageCreditCard({ licenseKey: activeLicenseV3?.key || '', - successURL: window.location.href, - cancelURL: window.location.href, + successURL: window.location.origin, + cancelURL: window.location.origin, }); };