Skip to content

Commit

Permalink
Merge pull request #6485 from Expensify/cmartins-fixOldDotLinks
Browse files Browse the repository at this point in the history
Encode oldDot links with param in the URL
  • Loading branch information
luacmartins authored Nov 26, 2021
2 parents 85d9a21 + 982686e commit d2eadd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/workspace/card/WorkspaceCardVBAWithECardView.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const WorkspaceCardVBAWithECardView = props => (
},
{
title: props.translate('workspace.common.reconcileCards'),
onPress: () => Link.openOldDotLink('domain_companycards?param={"section":"cardReconciliation"}'),
onPress: () => Link.openOldDotLink(encodeURI('domain_companycards?param={"section":"cardReconciliation"}')),
icon: Expensicons.ReceiptSearch,
shouldShowRightIcon: true,
iconRight: Expensicons.NewWindow,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const WorkspaceInvoicesFirstSection = props => (
menuItems={[
{
title: props.translate('workspace.invoices.sendInvoice'),
onPress: () => Link.openOldDotLink('reports?param={"createInvoice":true}'),
onPress: () => Link.openOldDotLink(encodeURI('reports?param={"createInvoice":true}')),
icon: Expensicons.Send,
shouldShowRightIcon: true,
iconRight: Expensicons.NewWindow,
Expand Down

0 comments on commit d2eadd4

Please sign in to comment.