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
[Due for payment 2026-10-13] Spend - App crashes after returning to expense RHP from expense report #103138
Version Number: 9.5.3-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#100331 Email or phone of affected tester (no customers):sdjsonsjodsjoisndjso@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Search
Action Performed:
Go to staging.new.expensify.com
Go to workspace chat.
Create expense A and click Submit.
Create expense B.
Open expense B > click Report field > select the report that contains Expense A.
Go to Spend > Expenses.
Open the first expense.
Navigate through both expenses via navigation arrow.
Navigate back to the first expense via arrow.
Click on the report link in "moved to expense from.." system message.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Recommendation: Revert. It crashes the app on every listed platform. This PR is also linked to 5 other open deploy blockers.
Why it crashes: The PR adds ?anchorTransactionID= in front of backTo on the SEARCH_REPORT route. It also nests backTo one level deeper on every carousel arrow press. After 2 presses, the "moved expense from" link decodes backTo twice. That leaves 2 raw backTo keys in the URL. query-string turns the repeated key into an array. On RHP back, MoneyRequestHeader calls backTo.replaceAll(...) on that array, which throws TypeError.
The link builder runs decodeURIComponent on a value that URLSearchParams.get() already decoded. The second decode exposes the inner &backTo=: getReportURLForCurrentContext.ts:42-45.
On RHP back, goUp replaces the screen with SEARCH_REPORT, and backTo arrives as an array: Navigation.ts:603-610.
This is why the repro needs "through both expenses, then back to the first." Two presses create two nesting levels. Production is unaffected because Spend > Expenses had no carousel arrows before this PR.
Other candidates ruled out: I checked all 45 App PRs on Deploy Checklist: New Expensify 2026-10-05. Only this PR touches the RHP expense carousel, the Search row-press seeding, or the SEARCH_REPORT route.
If you fix forward instead, any one of these stops the crash. Ideally do all three:
Remove the extra decodeURIComponent in getReportURLForCurrentContext.ts.
In getBackTo(), keep the screen's existing backTo instead of Navigation.getActiveRoute(). setParams stays on the same screen, so nesting is wrong and grows the URL without limit.
Make the backTo.replaceAll checks handle a non-string backTo.
changed the title [-]Spend - App crashes after returning to expense RHP from expense report[/-][+][Due for payment 2026-10-13] Spend - App crashes after returning to expense RHP from expense report[/+]on Oct 6, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.3-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-10-13. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
Activity
applause-bot commentedon Oct 6, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/e37094b6bfb7f01a6d145607b1bcf527717ad6ec348ef54b473ed2b57f2e53fe
https://platform.applause.com/services/links/v1/external/6c66806a698b08fc057fb0651a954312828a931ddc01da929353e0215b893c16
melvin-bot commentedon Oct 6, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #100331
melvin-bot commentedon Oct 6, 2026
@JS00001 @ShridharGoel you have been assigned to this deploy blocker because you reviewed the offending PR: #100331
github-actions commentedon Oct 6, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Oct 6, 2026
@thelullabyy you have been assigned to this deploy blocker because you authored the offending PR: #100331
melvin-bot commentedon Oct 6, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Oct 6, 2026
Deploy Blocker Analysis
Causing PR: Standardize Expense Report and Expense header with predictable button placement and carousel counter (high confidence, traced from the code; I did not reproduce it).
Recommendation: Revert. It crashes the app on every listed platform. This PR is also linked to 5 other open deploy blockers.
Why it crashes: The PR adds
?anchorTransactionID=in front ofbackToon theSEARCH_REPORTroute. It also nestsbackToone level deeper on every carousel arrow press. After 2 presses, the "moved expense from" link decodesbackTotwice. That leaves 2 rawbackTokeys in the URL.query-stringturns the repeated key into an array. On RHP back,MoneyRequestHeadercallsbackTo.replaceAll(...)on that array, which throwsTypeError.Evidence
anchorTransactionIDahead ofbackTo: src/ROUTES.ts:2118-2120.setParamswithbackTo = Navigation.getActiveRoute(), sobackTonests one level per press: MoneyRequestReportTransactionsNavigation.tsx:231-239 and L384.decodeURIComponenton a value thatURLSearchParams.get()already decoded. The second decode exposes the inner&backTo=: getReportURLForCurrentContext.ts:42-45.goUpreplaces the screen withSEARCH_REPORT, andbackToarrives as an array: Navigation.ts:603-610.route.params.backTo.replaceAll(...)and throws: MoneyRequestHeader.tsx:102. The same line is in MoneyRequestHeaderPrimaryAction.tsx:66.This is why the repro needs "through both expenses, then back to the first." Two presses create two nesting levels. Production is unaffected because Spend > Expenses had no carousel arrows before this PR.
Other candidates ruled out: I checked all 45 App PRs on Deploy Checklist: New Expensify 2026-10-05. Only this PR touches the RHP expense carousel, the Search row-press seeding, or the
SEARCH_REPORTroute.Other open blockers linked to this PR:
If you fix forward instead, any one of these stops the crash. Ideally do all three:
decodeURIComponentingetReportURLForCurrentContext.ts.getBackTo(), keep the screen's existingbackToinstead ofNavigation.getActiveRoute().setParamsstays on the same screen, so nesting is wrong and grows the URL without limit.backTo.replaceAllchecks handle a non-stringbackTo.view run
JS00001 commentedon Oct 6, 2026
@thelullabyy we definitely need to CP a fix for this one
melvin-bot commentedon Oct 6, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
melvin-bot commentedon Oct 6, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
m-natarajan commentedon Oct 6, 2026
Original issue not reproducible on Win 11/Chrome build v9.5.3-2. But encounter a different issue now - #103221
Recording.90.mp4
Not reproducible on iPhone 16/18.7.8 and Pixel 8a Android 16 build build v9.5.3-2
az_recorder_20261006_135447.mp4
ScreenRecording_10-06-2026.13-44-47_1.MP4
[-]Spend - App crashes after returning to expense RHP from expense report[/-][+][Due for payment 2026-10-13] Spend - App crashes after returning to expense RHP from expense report[/+]melvin-bot commentedon Oct 6, 2026
@thelullabyy
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.3-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-10-13. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]