You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #71376 from Expensify/revert-71021-fix-70509
[CP staging] Revert "Handle navigation properly when clicking on report link"
(cherry picked from commit b637bc0)
(cherry-picked to staging by mountiny)
@@ -6689,8 +6692,8 @@ function buildOptimisticMovedReportAction(
6689
6692
constmovedActionMessage=[
6690
6693
{
6691
6694
html: shouldHideMovedReportUrl
6692
-
? `moved this <a href='${getReportURLForCurrentContext(movedReportID)}' target='_blank' rel='noreferrer noopener'>report</a> to the <a href='${getReportURLForCurrentContext(newParentReportID)}' target='_blank' rel='noreferrer noopener'>${policyName}</a> workspace`
6693
-
: `moved this report to the <a href='${getReportURLForCurrentContext(newParentReportID)}' target='_blank' rel='noreferrer noopener'>${policyName}</a> workspace`,
6695
+
? `moved this <a href='${CONST.NEW_EXPENSIFY_URL}r/${movedReportID}' target='_blank' rel='noreferrer noopener'>report</a> to the <a href='${CONST.NEW_EXPENSIFY_URL}r/${newParentReportID}' target='_blank' rel='noreferrer noopener'>${policyName}</a> workspace`
6696
+
: `moved this report to the <a href='${CONST.NEW_EXPENSIFY_URL}r/${newParentReportID}' target='_blank' rel='noreferrer noopener'>${policyName}</a> workspace`,
6694
6697
text: `moved this report to the ${policyName} workspace`,
6695
6698
type: CONST.REPORT.MESSAGE.TYPE.COMMENT,
6696
6699
},
@@ -6777,8 +6780,11 @@ function buildOptimisticTransactionAction(
const[actionText,messageHtml]=[`moved this expense to ${reportName}`,`moved this expense to <a href='${url}' target='_blank' rel='noreferrer noopener'>${reportName}</a>`];
0 commit comments