diff options
Diffstat (limited to 'src/containers/subscription/SubscriptionFormScreen.js')
-rw-r--r-- | src/containers/subscription/SubscriptionFormScreen.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/containers/subscription/SubscriptionFormScreen.js b/src/containers/subscription/SubscriptionFormScreen.js index 5508c120c..e9e457084 100644 --- a/src/containers/subscription/SubscriptionFormScreen.js +++ b/src/containers/subscription/SubscriptionFormScreen.js | |||
@@ -20,12 +20,7 @@ export default @inject('stores', 'actions') @observer class SubscriptionFormScre | |||
20 | } = stores; | 20 | } = stores; |
21 | 21 | ||
22 | let hostedPageURL = !user.data.hadSubscription ? features.features.planSelectionURL : features.features.subscribeURL; | 22 | let hostedPageURL = !user.data.hadSubscription ? features.features.planSelectionURL : features.features.subscribeURL; |
23 | const url = new URL(hostedPageURL); | 23 | hostedPageURL = user.getAuthURL(hostedPageURL); |
24 | const params = new URLSearchParams(url.search.slice(1)); | ||
25 | |||
26 | params.append('authToken', user.authToken); | ||
27 | |||
28 | hostedPageURL = `${url.origin}${url.pathname}?${params.toString()}`; | ||
29 | 24 | ||
30 | actions.app.openExternalUrl({ url: hostedPageURL }); | 25 | actions.app.openExternalUrl({ url: hostedPageURL }); |
31 | } | 26 | } |