Skip to content

Commit

Permalink
fix(portal): use window.location.origin instead of the window.locatio…
Browse files Browse the repository at this point in the history
…n.href (#6770)

* fix(portal): use window.location.origin instead of the whole URL

* fix(portal): use window.location.origin instead of the whole URL
  • Loading branch information
vikrantgupta25 authored Jan 8, 2025
1 parent e92d055 commit 80740f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/container/AppLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
};

Expand Down

0 comments on commit 80740f6

Please sign in to comment.