Skip to content

Commit

Permalink
Merge pull request #21081 from Expensify/scott-fixShareAvatarBlocker
Browse files Browse the repository at this point in the history
Use new path for share url
  • Loading branch information
marcaaron authored Jun 20, 2023
2 parents b49ca20 + eb10b78 commit 3030d6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/ShareCodePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class ShareCodePage extends React.Component {
const isReport = this.props.report != null && this.props.report.reportID != null;
const subtitle = ReportUtils.getChatRoomSubtitle(this.props.report);

const url = isReport ? `${CONST.NEW_EXPENSIFY_URL}r/${this.props.report.reportID}` : `${CONST.NEW_EXPENSIFY_URL}details?login=${encodeURIComponent(this.props.session.email)}`;
const url = isReport
? `${CONST.NEW_EXPENSIFY_URL}${ROUTES.getReportRoute(this.props.report.reportID)}`
: `${CONST.NEW_EXPENSIFY_URL}${ROUTES.getProfileRoute(this.props.session.accountID)}`;

const platform = getPlatform();
const isNative = platform === CONST.PLATFORM.IOS || platform === CONST.PLATFORM.ANDROID;
Expand Down

0 comments on commit 3030d6f

Please sign in to comment.