fix: don't include full desktop path in deeplink redirect
This commit is contained in:
@@ -11,7 +11,7 @@ PURCHASE_URL=https://standardnotes.com/purchase
|
|||||||
PLANS_URL=https://standardnotes.com/plans
|
PLANS_URL=https://standardnotes.com/plans
|
||||||
DASHBOARD_URL=http://standardnotes.com/dashboard
|
DASHBOARD_URL=http://standardnotes.com/dashboard
|
||||||
|
|
||||||
SF_DEFAULT_SERVER=http://localhost:3000
|
DEFAULT_SYNC_SERVER=http://localhost:3000
|
||||||
|
|
||||||
# Development options
|
# Development options
|
||||||
DEV_DEFAULT_SYNC_SERVER=https://api.standardnotes.com
|
DEV_DEFAULT_SYNC_SERVER=https://api.standardnotes.com
|
||||||
|
|||||||
@@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -12,7 +12,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.href;
|
||||||
const successUrl = isDesktopApplication() ? `standardnotes://${currentUrl}` : 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}`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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."/>
|
<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>
|
<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._bugsnag_api_key = "<%= ENV['BUGSNAG_API_KEY'] %>";
|
||||||
window._enable_unfinished_features = "<%= ENV['ENABLE_UNFINISHED_FEATURES'] %>" === 'true';
|
window._enable_unfinished_features = "<%= ENV['ENABLE_UNFINISHED_FEATURES'] %>" === 'true';
|
||||||
window._websocket_url = "<%= ENV['WEBSOCKET_URL'] %>";
|
window._websocket_url = "<%= ENV['WEBSOCKET_URL'] %>";
|
||||||
|
|||||||
Reference in New Issue
Block a user