fix: success url should ignore params

This commit is contained in:
Mo Bitar
2021-11-10 14:33:32 -06:00
parent 8870f73c42
commit f28564e708
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ export type PurchaseFlowWrapperProps = {
};
export const getPurchaseFlowUrl = async (application: WebApplication): Promise<string | undefined> => {
const currentUrl = window.location.href;
const currentUrl = window.location.origin;
const successUrl = isDesktopApplication() ? `standardnotes://` : currentUrl;
if (application.noAccount()) {
return `${window._purchase_url}/offline?&success_url=${successUrl}`;