Skip to content

Commit

Permalink
fix: don't include full desktop path in deeplink redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Nov 10, 2021
1 parent 0d5e348 commit 8c3271b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/application/app.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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'] %>";
Expand Down

0 comments on commit 8c3271b

Please sign in to comment.