Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.3.17-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: #80480
Email or phone of affected tester (no customers): applausetester+dk6@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: Windows 11 Home/Chrome
App Component: Money Requests
Action Performed:
Preconditions:
- User has some workspaces, but there is not default workspace
- Go to SelfDM, create a manual expense with Merchant
- Open https://staging.new.expensify.com/
- Navigate to SelfDM
- Click 'Submit to someone' under created expense in preconditions
- Select a workspace in Participant page
- On Confirmation page, click on '<' button
- Click on '<' button again
Expected Result:
Test case 8: Tap the back button on the Confirmation page, should go back to the Merchant page (not Participants).
Actual Result:
Step 5 You navigate to Participant page.
Step 6 RHN is closed
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Screenshots/Videos
1.mp4
Issue Owner
Current Issue Owner: @abdulrahuman5196Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022021518909383503061
- Upwork Job ID: 2021518909383503061
- Last Price Increase: 2026-06-16
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Feb 11, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (
External)melvin-bot commentedon Feb 11, 2026
Triggered auto assignment to @RachCHopkins (
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.[-]Expense - User is navigated to Participant page instead of Merchant page[/-][+][$250] Expense - User is navigated to Participant page instead of Merchant page[/+]melvin-bot commentedon Feb 11, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022021518909383503061
daledah commentedon Feb 11, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
Actual Result:
Step 5 You navigate to Participant page.
Step 6 RHN is closed
What is the root cause of that problem?
When user clicks "Submit to someone" from an existing expense, selects a workspace in Participants page, and the merchant is required, the app navigates to the Merchant step page. However, when navigating to the Merchant page from Participants page, the
backToparameter is not provided.App/src/pages/iou/request/step/IOURequestStepParticipants.tsx
Lines 358 to 365 in e0727c9
The route is created without a
backToparameter. This means on the Merchant page, thebackToprop is undefined. When user clicks the back button on the Merchant page,Navigation.goBack(undefined)is called which closes the RHN instead of navigating back to the Participants page.App/src/pages/iou/request/step/IOURequestStepMerchant.tsx
Lines 81 to 83 in e0727c9
What changes do you think we should make in order to solve the problem?
We should pass the Participants page route as the
backToparameter when navigating to the Merchant page from Participants.In
src/pages/iou/request/step/IOURequestStepParticipants.tsx:} else if (isMerchantRequired) { route = ROUTES.MONEY_REQUEST_STEP_MERCHANT.getRoute( action, iouType === CONST.IOU.TYPE.CREATE || iouType === CONST.IOU.TYPE.TRACK ? CONST.IOU.TYPE.SUBMIT : iouType, initialTransactionID, newReportID, + ROUTES.MONEY_REQUEST_STEP_PARTICIPANTS.getRoute(iouType, initialTransactionID, reportID, undefined, action), ); }What alternative solutions did you explore? (Optional)
An alternative would be to modify the
navigateBackfunction inIOURequestStepMerchant.tsxto handle the case whenbackTois undefined by usingNavigation.goBack()without parameters. However, this would require additional logic to determine the correct back destination based on the navigation context, which is more complex and error-prone than simply providing the correctbackToparameter upfront.HiepPP commentedon Feb 11, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a user clicks "Submit to someone" on an expense in SelfDM, selects a workspace in the Participant page, and then presses the back button on the Merchant page, the RHN is closed instead of navigating back to the Participants page.
What is the root cause of that problem?
The
navigateBackfunction inIOURequestStepMerchant.tsxdirectly callsNavigation.goBack(backTo)without handling the case whenbackTois undefined. When navigating from Participants to Merchant (when merchant is required), thebackToparameter is not provided, so clicking back triggersNavigation.goBack(undefined)which closes the RHN.This is inconsistent with other step components like
IOURequestStepWaypoint,IOURequestStepTime, andIOURequestStepSubratewhich all checkif (backTo)and provide fallback navigation.What changes do you think we should make in order to solve the problem?
File:
src/pages/iou/request/step/IOURequestStepMerchant.tsxKey Changes:
navigateBackfunction to check ifbackToexistsbackTois undefined, provide a fallback navigation to Participants pageCode Change Location: Lines 81-83 in
IOURequestStepMerchant.tsxThis follows the established pattern used in other IOU step components (Waypoint, Time, Subrate) and makes the Merchant page robust regardless of how it's invoked.
What alternative solutions did you explore? (Optional)
Alternative 1: Pass
backToparameter from Participants page when navigating to Merchant.backTo, the bug reoccurs.Alternative 2: Check merchant requirement in Confirmation page's
navigateBack.github-actions commentedon Feb 11, 2026
HiepPP commentedon Feb 11, 2026
I update the proposal to follow template: #82091 (comment)
39 remaining items
github-actions commentedon Jun 4, 2026
melvin-bot commentedon Jun 9, 2026
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Jun 9, 2026
@abdulrahuman5196 Huh... This is 4 days overdue. Who can take care of this?
melvin-bot commentedon Jun 11, 2026
@abdulrahuman5196 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
fix: back button on Confirmation page goes to Participant page instea…
melvin-bot commentedon Jun 15, 2026
@abdulrahuman5196 10 days overdue. I'm getting more depressed than Marvin.
melvin-bot commentedon Jun 16, 2026
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Jun 17, 2026
@abdulrahuman5196 12 days overdue. Walking. Toward. The. Light...
abdulrahuman5196 commentedon Jun 20, 2026
Pinged in slack