Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ const AnchorRenderer = (props) => {
// If we are handling a New Expensify link then we will assume this should be opened by the app internally. This ensures that the links are opened internally via react-navigation
// instead of in a new tab or with a page refresh (which is the default behavior of an anchor tag)
if (internalNewExpensifyPath) {
if (attrPath.indexOf('r/') === 0) {
// If we're navigating to a report, we need to call OpenReport here since componentDidMount doesn't get called
// when we're deeplinking to a report from a different report (it never unmounts).
if (attrPath.startsWith('r/')) {
const reportID = attrPath.split('/')[1];
Report.openReport(reportID);
}
Expand Down