From f28564e70823a9840e9ccbb991fd4b204d45b172 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Wed, 10 Nov 2021 14:33:32 -0600 Subject: [PATCH] fix: success url should ignore params --- app/assets/javascripts/purchaseFlow/PurchaseFlowWrapper.tsx | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/purchaseFlow/PurchaseFlowWrapper.tsx b/app/assets/javascripts/purchaseFlow/PurchaseFlowWrapper.tsx index ecdeb1129..9deeec45d 100644 --- a/app/assets/javascripts/purchaseFlow/PurchaseFlowWrapper.tsx +++ b/app/assets/javascripts/purchaseFlow/PurchaseFlowWrapper.tsx @@ -11,7 +11,7 @@ export type PurchaseFlowWrapperProps = { }; export const getPurchaseFlowUrl = async (application: WebApplication): Promise => { - 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}`; diff --git a/package.json b/package.json index 4aa865fbb..7e9cf75b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "standard-notes-web", - "version": "3.9.0", + "version": "3.9.1", "license": "AGPL-3.0-or-later", "repository": { "type": "git",