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
This commit is contained in:
Vikrant Gupta 2025-01-08 11:26:18 +05:30 committed by GitHub
parent e92d055c30
commit 80740f646c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -272,8 +272,8 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
const handleFailedPayment = (): void => { const handleFailedPayment = (): void => {
manageCreditCard({ manageCreditCard({
licenseKey: activeLicenseV3?.key || '', licenseKey: activeLicenseV3?.key || '',
successURL: window.location.href, successURL: window.location.origin,
cancelURL: window.location.href, cancelURL: window.location.origin,
}); });
}; };