fix: don't include full desktop path in deeplink redirect

This commit is contained in:
Mo Bitar
2021-11-09 18:13:43 -06:00
parent 0d5e348523
commit 8c3271bcb3
4 changed files with 5 additions and 5 deletions

View File

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