diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 9313c37a76b7..a48eb7d7c89a 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -1643,6 +1643,7 @@ export { getDisplayNamesWithTooltips, getReportName, getReportIDFromLink, + getRouteFromLink, navigateToDetailsPage, generateReportID, hasReportNameError, diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 0f20f3ddc51f..2642ce6710e4 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -1370,13 +1370,16 @@ function toggleEmojiReaction(reportID, reportAction, emoji, paramSkinTone = pref * @param {String|null} url */ function openReportFromDeepLink(url) { - const reportID = ReportUtils.getReportIDFromLink(url); - if (!reportID) { - return; - } InteractionManager.runAfterInteractions(() => { Navigation.isReportScreenReady().then(() => { - Navigation.navigate(ROUTES.getReportRoute(reportID)); + const route = ReportUtils.getRouteFromLink(url); + const reportID = ReportUtils.getReportIDFromLink(url); + if (reportID) { + Navigation.navigate(ROUTES.getReportRoute(reportID)); + } + if (route === ROUTES.CONCIERGE) { + navigateToConciergeChat(); + } }); }); }