aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/settings/AccountScreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/settings/AccountScreen.js')
-rw-r--r--src/containers/settings/AccountScreen.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js
index 88ecd55d5..93ab44690 100644
--- a/src/containers/settings/AccountScreen.js
+++ b/src/containers/settings/AccountScreen.js
@@ -28,7 +28,14 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend
28 handleWebsiteLink(route) { 28 handleWebsiteLink(route) {
29 const { actions, stores } = this.props; 29 const { actions, stores } = this.props;
30 30
31 const url = stores.user.getAuthURL(`${WEBSITE}${route}?utm_source=app&utm_medium=account_dashboard`); 31 const api = stores.settings.all.app.server;
32
33 let url;
34 if (api === 'https://api.franzinfra.com') {
35 url = stores.user.getAuthURL(`${WEBSITE}${route}?utm_source=app&utm_medium=account_dashboard`);
36 } else {
37 url = `${api}${route}`;
38 }
32 39
33 actions.app.openExternalUrl({ url }); 40 actions.app.openExternalUrl({ url });
34 } 41 }