Skip to content

Commit d2eadd4

Browse files
authored
Merge pull request #6485 from Expensify/cmartins-fixOldDotLinks
Encode oldDot links with param in the URL
2 parents 85d9a21 + 982686e commit d2eadd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/workspace/card/WorkspaceCardVBAWithECardView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const WorkspaceCardVBAWithECardView = props => (
2727
},
2828
{
2929
title: props.translate('workspace.common.reconcileCards'),
30-
onPress: () => Link.openOldDotLink('domain_companycards?param={"section":"cardReconciliation"}'),
30+
onPress: () => Link.openOldDotLink(encodeURI('domain_companycards?param={"section":"cardReconciliation"}')),
3131
icon: Expensicons.ReceiptSearch,
3232
shouldShowRightIcon: true,
3333
iconRight: Expensicons.NewWindow,

src/pages/workspace/invoices/WorkspaceInvoicesFirstSection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const WorkspaceInvoicesFirstSection = props => (
2323
menuItems={[
2424
{
2525
title: props.translate('workspace.invoices.sendInvoice'),
26-
onPress: () => Link.openOldDotLink('reports?param={"createInvoice":true}'),
26+
onPress: () => Link.openOldDotLink(encodeURI('reports?param={"createInvoice":true}')),
2727
icon: Expensicons.Send,
2828
shouldShowRightIcon: true,
2929
iconRight: Expensicons.NewWindow,

0 commit comments

Comments
 (0)