fix: don't include full desktop path in deeplink redirect
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user