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
No known key found for this signature in database
GPG key ID: C9EAD0759817F96F
4 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ PURCHASE_URL=https://standardnotes.com/purchase
PLANS_URL=https://standardnotes.com/plans
DASHBOARD_URL=http://standardnotes.com/dashboard
SF_DEFAULT_SERVER=http://localhost:3000
DEFAULT_SYNC_SERVER=http://localhost:3000
# Development options
DEV_DEFAULT_SYNC_SERVER=https://api.standardnotes.com

View file

@ -97,10 +97,10 @@ Then open your browser to `http://localhost:3001`.
---
You can also set the `SF_DEFAULT_SERVER` environment variable to set the default server for login and registration.
You can also set the `DEFAULT_SYNC_SERVER` environment variable to set the default server for login and registration.
```
SF_DEFAULT_SERVER=https://sync.myserver
DEFAULT_SYNC_SERVER=https://sync.myserver
```
---

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}`;
}

View file

@ -31,7 +31,7 @@
<meta name="og:description" content="Standard Notes is a basic notes app that delivers only the essentials in note taking. Because of its simplicity and resistance to growth, users can count on durability and convenience."/>
<script>
window._default_sync_server = "<%= ENV['SF_DEFAULT_SERVER'] %>";
window._default_sync_server = "<%= ENV['DEFAULT_SYNC_SERVER'] %>";
window._bugsnag_api_key = "<%= ENV['BUGSNAG_API_KEY'] %>";
window._enable_unfinished_features = "<%= ENV['ENABLE_UNFINISHED_FEATURES'] %>" === 'true';
window._websocket_url = "<%= ENV['WEBSOCKET_URL'] %>";