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
{{ message }}
Repository navigation
[$250] Hybrid app - Not back to the report screen after closing and reopening the app #72656
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: 9.2.31-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:#72089 Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team Device used: Android 13 / Xiaomi Poco F5, iOS 15.8.3 / iPhone 7 Plus App Component: Other
Action Performed:
Precondition:
User B send IOU to User A
Login to the Hybrid app using User A's account
Open IOU report from User B
Close the app and reopen it
Expected Result:
Reopen the app - it should initialize directly on the report screen.
Actual Result:
User does not navigate back to the report screen after closing and reopening the app
changed the title [-]Hybrid app - Not back to the report screen after closing and reopening the app[/-][+][$250] Hybrid app - Not back to the report screen after closing and reopening the app[/+]on Oct 15, 2025
@mountiny I believe this bug isn't related to my PR, because the tester opens the report from the reports page, not from the chats. The issue is that when you open a report through the chats, you get redirected to /r/:reportID, but when you open it from the reports page, you get redirected to /search/r/:reportID, where the check isn’t applied. I verified that this bug existed even before my PR - here’s the video with my discarded change:
Screen.Recording.2025-10-16.at.14.25.37.mov
If you want, I can fix it (it would be enough to add the same check for /search/r/:reportID).
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Oct 15, 2025
Triggered auto assignment to @isabelastisser (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.bernhardoj commentedon Oct 15, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
App doesn't reopen report after reopen the app.
What is the root cause of that problem?
We only reopen the report if the reportID is found in the last visited path.
App/src/libs/shouldOpenLastVisitedPath/index.native.ts
Lines 4 to 6 in 6df14db
App/src/libs/ReportUtils.ts
Lines 9008 to 9016 in 0ce96e0
In OP, we open the report from the Reports tab, but the current logic only checks for the Report screen opened from Home.
App/src/libs/ReportUtils.ts
Lines 8981 to 8990 in 0ce96e0
App/src/libs/ReportUtils.ts
Lines 9001 to 9005 in 0ce96e0
What changes do you think we should make in order to solve the problem?
We need to update
parseReportRouteParamslogic so it checks for search money request report page.mountiny commentedon Oct 15, 2025
@collectioneur @WojtekBoman might be related to your PR here #72089 can you take a look?
melvin-bot commentedon Oct 15, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021978554120600277830
[-]Hybrid app - Not back to the report screen after closing and reopening the app[/-][+][$250] Hybrid app - Not back to the report screen after closing and reopening the app[/+]melvin-bot commentedon Oct 15, 2025
Current assignee @abdulrahuman5196 is eligible for the External assigner, not assigning anyone new.
collectioneur commentedon Oct 16, 2025
@mountiny I believe this bug isn't related to my PR, because the tester opens the report from the reports page, not from the chats. The issue is that when you open a report through the chats, you get redirected to
/r/:reportID, but when you open it from the reports page, you get redirected to/search/r/:reportID, where the check isn’t applied. I verified that this bug existed even before my PR - here’s the video with my discarded change:Screen.Recording.2025-10-16.at.14.25.37.mov
If you want, I can fix it (it would be enough to add the same check for
/search/r/:reportID).abdulrahuman5196 commentedon Oct 20, 2025
I am not sure if this is a regression. But I am not able to repro the required close and reopen even in the normal chats report view.
Do i need to do anything else to use this feature?
I am observing the same in app store app as well
Screen.Recording.2025-10-20.at.1.52.34.PM.mov
melvin-bot commentedon Oct 22, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
isabelastisser commentedon Oct 22, 2025
Not reproducible; closing.
mountiny commentedon Oct 22, 2025
@bernhardoj are you able to reproduce this one?
bernhardoj commentedon Oct 23, 2025
You need to use a private domain account.
In my case, I just removed the public domain check here to test it easier.
App/src/libs/Navigation/NavigationRoot.tsx
Lines 123 to 125 in 5425b7b
But I can't reproduce this anymore because
shouldOpenLastVisitedPath/index.native.tsfile does not exist anymore.App/src/libs/shouldOpenLastVisitedPath/index.ts
Lines 3 to 5 in 5425b7b
This is what
shouldOpenLastVisitedPath/index.native.tslooks like previously.