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-05-07] Split: “Not here” page displayed when selecting split dates #88434
👋 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.
Please re-state the problem that we are trying to solve in this issue.
When splitting an expense and selecting "Split dates" from the date field, saving the dates redirects the user to a "Not here" page instead of navigating back to the split expense overview.
The backTo value is generated by Navigation.getActiveRoute(), which calls getPathFromState on the current navigation state. When the user is on the SplitExpensePage DATE tab, this produces a URL like:
The goBack → goUp flow calls getStateFromPath(backToRoute) at Navigation.ts:428, but the SPLIT_EXPENSE route definition has a conflicting :backTo? optional path parameter at the same position as the /date tab path:
The TODO comment at ROUTES.ts:1172 acknowledges this issue: "Remove backTo from route once we have find another way to fix navigation issues with tabs".
When getStateFromPath parses the URL, the :backTo? path param and the date tab path create ambiguity, causing parsing to fail or produce incorrect params. This leads goUp to fall into the REPLACE fallback at line 465, which navigates to a screen with wrong/missing params, triggering the FullPageNotFoundView ("Not here" page).
Additionally, SPLIT_EXPENSE_CREATE_DATE_RANGE is missing from all RELATIONS maps — only SPLIT_EXPENSE_SEARCH has a RELATIONS entry. This means getAdaptedStateFromPath cannot determine the correct full-screen route to display underneath the RHP when this screen is loaded.
What changes do you think we should make in order to fix the problem?
Fix handleDatePress to use a stable route reference — Instead of passing the raw Navigation.getActiveRoute() output (which includes the problematic tab path + backTo combo) as the backTo param, construct the backTo URL explicitly without the tab path segment. For example, use ROUTES.SPLIT_EXPENSE.getRoute(reportID, originalTransactionID, splitExpenseTransactionID, backTo) directly, bypassing the ambiguous URL generated by getPathFromState.
Add SPLIT_EXPENSE_CREATE_DATE_RANGE to the appropriate RELATIONS map — Add an entry so getAdaptedStateFromPath can correctly determine the full-screen route. Based on where the split expense flow is accessed (from reports or search), it should map to the report screen or home, similar to how other money request screens are mapped.
Missing RELATIONS entry — SPLIT_EXPENSE_SEARCH is the only split screen in SEARCH_TO_RHP.ts:54
What alternative solutions did you explore? (Optional)
An alternative would be to avoid using backTo entirely and instead use Navigation.goBack() without arguments (simple pop). However, this may not correctly restore the navigation state in all cases (e.g., deep linking or when the screen is accessed from search). The explicit route construction approach is more reliable and consistent with how other similar flows handle navigation.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
Classification: Frontend bug Causing PR: Unable to identify a single high-confidence causing PR — see Detailed Analysis Related Issues: None identified
Recommendation: NEEDS INVESTIGATION
The bug is staging-only and involves the split dates feature (SplitExpenseCreateDateRagePage). After saving split dates, the user is redirected to a "Not here" page. Code analysis shows the redirect is triggered by the FullPageNotFoundView condition (!isSplitAvailable), but the exact regression causing this in this staging cycle could not be identified with high confidence from code review alone.
Assigned: See candidates below — cannot assign from a single causing PR with high confidence Labels: Both DeployBlockerCash and DeployBlocker are present. Based on analysis: the fix requires changes to Expensify/App, so DeployBlockerCash should remain. DeployBlocker is unrelated to this issue (it covers backend deploys) — however, since the root cause PR is not identified with high confidence, no labels have been removed.
📋 Detailed Analysis
Evidence
Flow that triggers the bug:
Create an expense in a workspace
Click "More" → "Split" → SplitExpensePage opens with a draft transaction in Onyx
Switch to the "Date" tab, click the "Split dates" field
The isSplitAction function in ReportSecondaryActionUtils.ts (lines 107–180) requires several conditions including isPolicyExpenseChatEnabled on the policy and specific report status checks.
Unmodified by any staging PR:SplitExpenseCreateDateRagePage.tsx itself, SplitExpenses.ts, isSplitAction function body
Root Cause
The "Not here" page condition has three triggers:
!reportID — reportID is a route param, should be stable
isEmptyObject(draftTransaction) — resetSplitExpensesByDateRange uses Onyx.merge (not Onyx.set), so it should not clear the draft
!isSplitAvailable — most likely trigger; requires report && transaction && isSplitAction(...) all to be truthy
The most probable root cause is that isSplitAvailable becomes false after navigating back to SplitExpensePage. This could happen if:
currentPolicy is undefined or missing isPolicyExpenseChatEnabled when the page re-renders
The report from getReportOrDraftReport(reportID) returns undefined
isSplitAction returns false due to a changed condition related to one of the modified staging PRs
The feature (SplitExpenseCreateDateRagePage) itself appears to be relatively recent and may contain an inherent bug in the isSplitAvailable condition rather than being caused by a specific regression.
Recommended next step: The PR author and reviewers who worked on the split dates feature should test the exact flow on staging and inspect the Onyx state and isSplitAvailable value when the "Not here" page appears. Specifically, verify whether report, transaction, or currentPolicy is undefined or whether isSplitAction returns false and which condition within it fails.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.64-31 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@neil-marcellini The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]
Activity
melvin-bot commentedon Apr 21, 2026
Triggered auto assignment to @neil-marcellini (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Apr 21, 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 Apr 21, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Apr 21, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When splitting an expense and selecting "Split dates" from the date field, saving the dates redirects the user to a "Not here" page instead of navigating back to the split expense overview.
What is the root cause of that problem?
The navigation failure occurs in
SplitExpenseCreateDateRagePage.tsx:57whenNavigation.goBack(backTo)is called after saving dates.The
backTovalue is generated byNavigation.getActiveRoute(), which callsgetPathFromStateon the current navigation state. When the user is on the SplitExpensePage DATE tab, this produces a URL like:The
goBack→goUpflow callsgetStateFromPath(backToRoute)atNavigation.ts:428, but the SPLIT_EXPENSE route definition has a conflicting:backTo?optional path parameter at the same position as the/datetab path:The TODO comment at
ROUTES.ts:1172acknowledges this issue: "Remove backTo from route once we have find another way to fix navigation issues with tabs".When
getStateFromPathparses the URL, the:backTo?path param and thedatetab path create ambiguity, causing parsing to fail or produce incorrect params. This leadsgoUpto fall into the REPLACE fallback at line 465, which navigates to a screen with wrong/missing params, triggering theFullPageNotFoundView("Not here" page).Additionally,
SPLIT_EXPENSE_CREATE_DATE_RANGEis missing from all RELATIONS maps — onlySPLIT_EXPENSE_SEARCHhas a RELATIONS entry. This meansgetAdaptedStateFromPathcannot determine the correct full-screen route to display underneath the RHP when this screen is loaded.What changes do you think we should make in order to fix the problem?
Fix
handleDatePressto use a stable route reference — Instead of passing the rawNavigation.getActiveRoute()output (which includes the problematic tab path + backTo combo) as thebackToparam, construct the backTo URL explicitly without the tab path segment. For example, useROUTES.SPLIT_EXPENSE.getRoute(reportID, originalTransactionID, splitExpenseTransactionID, backTo)directly, bypassing the ambiguous URL generated bygetPathFromState.Add
SPLIT_EXPENSE_CREATE_DATE_RANGEto the appropriate RELATIONS map — Add an entry sogetAdaptedStateFromPathcan correctly determine the full-screen route. Based on where the split expense flow is accessed (from reports or search), it should map to the report screen or home, similar to how other money request screens are mapped.Supporting evidence
handleDatePressatSplitExpensePage.tsx:431-432generates the backTo URLupdateDateatSplitExpenseCreateDateRagePage.tsx:55-57callsNavigation.goBack(backTo)ROUTES.ts:1171-1183with the acknowledged TODOgoUpREPLACE fallback atNavigation.ts:448-467SPLIT_EXPENSE_SEARCHis the only split screen inSEARCH_TO_RHP.ts:54What alternative solutions did you explore? (Optional)
An alternative would be to avoid using
backToentirely and instead useNavigation.goBack()without arguments (simple pop). However, this may not correctly restore the navigation state in all cases (e.g., deep linking or when the screen is accessed from search). The explicit route construction approach is more reliable and consistent with how other similar flows handle navigation.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.OSBotify commentedon Apr 21, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: Unable to identify a single high-confidence causing PR — see Detailed Analysis
Related Issues: None identified
Recommendation: NEEDS INVESTIGATION
The bug is staging-only and involves the split dates feature (
SplitExpenseCreateDateRagePage). After saving split dates, the user is redirected to a "Not here" page. Code analysis shows the redirect is triggered by theFullPageNotFoundViewcondition (!isSplitAvailable), but the exact regression causing this in this staging cycle could not be identified with high confidence from code review alone.Assigned: See candidates below — cannot assign from a single causing PR with high confidence
Labels: Both
DeployBlockerCashandDeployBlockerare present. Based on analysis: the fix requires changes toExpensify/App, soDeployBlockerCashshould remain.DeployBlockeris unrelated to this issue (it covers backend deploys) — however, since the root cause PR is not identified with high confidence, no labels have been removed.📋 Detailed Analysis
Evidence
Flow that triggers the bug:
SplitExpensePageopens with a draft transaction in OnyxNavigation.navigate(ROUTES.SPLIT_EXPENSE_CREATE_DATE_RANGE.getRoute(reportID, transactionID, Navigation.getActiveRoute()))opensSplitExpenseCreateDateRagePageupdateDate()callsresetSplitExpensesByDateRange(...)thenNavigation.goBack(backTo)The "Not here" page logic in both
SplitExpensePageandSplitExpenseCreateDateRagePage:Where
isSplitAvailableinSplitExpenseCreateDateRagePage.tsx(line 60):The
isSplitActionfunction inReportSecondaryActionUtils.ts(lines 107–180) requires several conditions includingisPolicyExpenseChatEnabledon the policy and specific report status checks.Candidate causing PRs investigated:
ReportSecondaryActionUtils.ts,ReportUtils.tsisHoldActionForTransaction, modifiescanHoldUnholdReportActionlogic. Same file asisSplitAction.isSplitActionitself was not changedSplitExpensePage.tsx,SplitExpenseEditPage.tsxconvertToDisplayStringimport — pure refactor, no behavioral changeIOU/Split.ts,Navigation.tsupdateSplitTransactionsFromSplitExpensesFlow, not the date range save pathNavigationpath helpersgetMatchingNewRouteregex logicSplitExpensePage.tsx,IOU/Split.tsIOU/Split.ts,IOU/index.tspolicyTagListsourcing inupdateSplitTransactionsVerification
Affected files confirmed:
/home/runner/_work/App/App/src/pages/iou/SplitExpenseCreateDateRagePage.tsx— contains theFullPageNotFoundViewtriggered on the save path/home/runner/_work/App/App/src/libs/ReportSecondaryActionUtils.ts— containsisSplitAction/home/runner/_work/App/App/src/libs/actions/IOU/Split.ts— containsresetSplitExpensesByDateRange/home/runner/_work/App/App/src/libs/actions/SplitExpenses.ts— containsinitSplitExpense(draft initialization)Unmodified by any staging PR:
SplitExpenseCreateDateRagePage.tsxitself,SplitExpenses.ts,isSplitActionfunction bodyRoot Cause
The "Not here" page condition has three triggers:
!reportID— reportID is a route param, should be stableisEmptyObject(draftTransaction)—resetSplitExpensesByDateRangeusesOnyx.merge(notOnyx.set), so it should not clear the draft!isSplitAvailable— most likely trigger; requiresreport && transaction && isSplitAction(...)all to be truthyThe most probable root cause is that
isSplitAvailablebecomesfalseafter navigating back toSplitExpensePage. This could happen if:currentPolicyisundefinedor missingisPolicyExpenseChatEnabledwhen the page re-rendersreportfromgetReportOrDraftReport(reportID)returnsundefinedisSplitActionreturns false due to a changed condition related to one of the modified staging PRsThe feature (
SplitExpenseCreateDateRagePage) itself appears to be relatively recent and may contain an inherent bug in theisSplitAvailablecondition rather than being caused by a specific regression.Recommended next step: The PR author and reviewers who worked on the split dates feature should test the exact flow on staging and inspect the Onyx state and
isSplitAvailablevalue when the "Not here" page appears. Specifically, verify whetherreport,transaction, orcurrentPolicyisundefinedor whetherisSplitActionreturns false and which condition within it fails.neil-marcellini commentedon Apr 21, 2026
Interesting, the Melvin-bot analysis is fairly complicated, so I'm going to see if I can have Cursor figure out which PR caused this.
7 remaining items
Merge pull request Expensify#88490 from Expensify/neil/revert-87554-f…
Merge pull request #88490 from Expensify/neil/revert-87554-fix-88434
marcaaron commentedon Apr 22, 2026
Reopening until fix on staging.
roryabraham commentedon Apr 22, 2026
requested retest: https://expensify.slack.com/archives/C09V78U42D8/p1776818974365289
m-natarajan commentedon Apr 22, 2026
Not repro, Windows 11 / Chrome and iPhone 13 / iOS 26.5, v9.3.61-2
split.ios.MP4
split.date.web.mp4
[-]Split: “Not here” page displayed when selecting split dates[/-][+][Due for payment 2026-05-07] Split: “Not here” page displayed when selecting split dates[/+]melvin-bot commentedon Apr 30, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 30, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.64-31 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-05-07. 🎊
melvin-bot commentedon Apr 30, 2026
@neil-marcellini The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]