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

View File

@@ -1,6 +1,6 @@
{ {
"name": "standard-notes-web", "name": "standard-notes-web",
"version": "3.9.0", "version": "3.9.1",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"repository": { "repository": {
"type": "git", "type": "git",