mirror of
https://github.com/standardnotes/app.git
synced 2026-01-16 23:01:30 +00:00
fix: don't include full desktop path in deeplink redirect
This commit is contained in:
parent
0d5e348523
commit
8c3271bcb3
4 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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> => {
|
||||
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}`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'] %>";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue