diff --git a/src/CONST.js b/src/CONST.js index 199c13733afd..cd1c14e10091 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -179,7 +179,7 @@ const CONST = { PRIVACY_URL: 'https://use.expensify.com/privacy', LICENSES_URL: 'https://use.expensify.com/licenses', PLAY_STORE_URL: 'https://play.google.com/store/apps/details?id=com.expensify.chat&hl=en', - ADD_SECONDARY_LOGIN_URL: 'settings?param={%22section%22:%22account%22}', + ADD_SECONDARY_LOGIN_URL: encodeURI('settings?param={"section":"account","openModal":"secondaryLogin"}'), MANAGE_CARDS_URL: 'domain_companycards', FEES_URL: 'https://use.expensify.com/fees', CFPB_PREPAID_URL: 'https://cfpb.gov/prepaid', diff --git a/src/pages/ReimbursementAccount/EnableStep.js b/src/pages/ReimbursementAccount/EnableStep.js index ee78c8fed403..a5b0b04fe75a 100644 --- a/src/pages/ReimbursementAccount/EnableStep.js +++ b/src/pages/ReimbursementAccount/EnableStep.js @@ -23,6 +23,7 @@ import * as Illustrations from '../../components/Icon/Illustrations'; import * as BankAccounts from '../../libs/actions/BankAccounts'; import * as Link from '../../libs/actions/Link'; import * as User from '../../libs/actions/User'; +import CONST from '../../CONST'; const propTypes = { /** Are we loading payment methods? */ @@ -76,7 +77,7 @@ class EnableStep extends React.Component { title: this.props.translate('workspace.bankAccount.addWorkEmail'), icon: Expensicons.Mail, onPress: () => { - Link.openOldDotLink('settings?param={"section":"account","openModal":"secondaryLogin"}'); + Link.openOldDotLink(CONST.ADD_SECONDARY_LOGIN_URL); User.subscribeToExpensifyCardUpdates(); }, shouldShowRightIcon: true, diff --git a/src/pages/workspace/card/WorkspaceCardVBANoECardView.js b/src/pages/workspace/card/WorkspaceCardVBANoECardView.js index 78f768e38bf8..54608105af48 100644 --- a/src/pages/workspace/card/WorkspaceCardVBANoECardView.js +++ b/src/pages/workspace/card/WorkspaceCardVBANoECardView.js @@ -12,6 +12,7 @@ import * as Link from '../../../libs/actions/Link'; import * as User from '../../../libs/actions/User'; import ONYXKEYS from '../../../ONYXKEYS'; import compose from '../../../libs/compose'; +import CONST from '../../../CONST'; const propTypes = { ...withLocalizePropTypes, @@ -27,7 +28,7 @@ const WorkspaceCardVBANoECardView = props => ( title: props.translate('workspace.card.addWorkEmail'), onPress: () => { Navigation.dismissModal(); - Link.openOldDotLink('settings?param={"section":"account","openModal":"secondaryLogin"}'); + Link.openOldDotLink(CONST.ADD_SECONDARY_LOGIN_URL); User.subscribeToExpensifyCardUpdates(); }, icon: Expensicons.Mail,