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
Report - Navigating to original report via system message and deleting it, leads to chat. #76715
Version Number: 9.2.71-5 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:#71220 Email or phone of affected tester (no customers):ibellicotest+2154@gmail.com Issue reported by: Applause Internal Team Device used: Motorola MotoG60 / Android 12 / Chrome ( mWeb / Hybrid app) - Windows 11 / Chrome App Component: Money Requests
Action Performed:
Prerequisite: Account has at least one workspace.
Open the Expensify app.
Open any workspace chat.
Create a manual expense.
Open the just created expense.
Tap on the "Report" field and select "Create Report".
Navigate to the new report.
Tap on the link from "Moved this expense from" system message.
Note that you land on the original report.
Tap on "More" and delete the report.
Note that you land on chat instead of returning to previous report.
Expected Result:
After moving an expense to a new report, navigating to original report via link on "Moved this expense from" system message and deleting it, user should return to previous report. Behaviour should be the same as using back button.
Actual Result:
After moving an expense to a new report, navigating to original report via link on "Moved this expense from" system message and deleting it, user lands on chat instead of returning to previous report.
👋 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.
After moving an expense to a new report, navigating to original report via link on "Moved this expense from" system message and deleting it, user lands on chat instead of returning to previous report.
What is the root cause of that problem?
After deleting the report, we will navigate to the backTo route, if not, we will navigate back to the chat report.
Note: If we want to navigate back to previous report even when in search page then we can change logic here
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
@garrettmknight@trjExpensify@JmillsExpensify we need input here on the expected behavior. I don't think either the Actual Result nor the Expected Result are wrong in this case, as the new message is basically a new feature we need a direction on which behavior is proper for this case. I believe the way it is now (navigating to chat) is more intuitive, but any input is appreciated!
After deleting the report, we will navigate to the backTo route, if not, we will navigate back to the chat report.
My thought was that we would follow this behaviour for deleting a report without clicking the link first. That said, aren't we actively deprecating the backTo param? So it seems counter-productive to add it here, and then arrive at the same place as the alt (navigate to the parent chat) when we take it away in short order - so I think we can just stick with what's happening now.
Activity
melvin-bot commentedon Dec 4, 2025
Triggered auto assignment to @JmillsExpensify (
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.melvin-bot commentedon Dec 4, 2025
Triggered auto assignment to @NikkiWines (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Dec 4, 2025
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Dec 4, 2025
👋 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:
JmillsExpensify commentedon Dec 4, 2025
Not a deploy blocker in my book. Removing the label.
daledah commentedon Dec 4, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
After moving an expense to a new report, navigating to original report via link on "Moved this expense from" system message and deleting it, user lands on chat instead of returning to previous report.
What is the root cause of that problem?
After deleting the report, we will navigate to the
backToroute, if not, we will navigate back to the chat report.App/src/components/MoneyReportHeader.tsx
Lines 1228 to 1233 in da79e09
but when clicking on the link we are not passing the
backToparam hereApp/src/libs/ReportUtils.ts
Lines 6986 to 6989 in da79e09
App/src/libs/ReportUtils.ts
Lines 12845 to 12848 in da79e09
What changes do you think we should make in order to solve the problem?
We should pass in
backToparam when clicking the linkApp/src/libs/ReportUtils.ts
Lines 12845 to 12848 in da79e09
Note: If we want to navigate back to previous report even when in search page then we can change logic here
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
NikkiWines commentedon Dec 8, 2025
asked for an update here
Valforte commentedon Dec 8, 2025
@garrettmknight @trjExpensify @JmillsExpensify we need input here on the expected behavior. I don't think either the Actual Result nor the Expected Result are wrong in this case, as the new message is basically a new feature we need a direction on which behavior is proper for this case. I believe the way it is now (navigating to chat) is more intuitive, but any input is appreciated!
trjExpensify commentedon Dec 9, 2025
My thought was that we would follow this behaviour for deleting a report without clicking the link first. That said, aren't we actively deprecating the
backToparam? So it seems counter-productive to add it here, and then arrive at the same place as the alt (navigate to the parent chat) when we take it away in short order - so I think we can just stick with what's happening now.JmillsExpensify commentedon Dec 9, 2025
Same, I like sticking with what's happening now.
NikkiWines commentedon Dec 11, 2025
Nice, sounds like this can be closed then?
trjExpensify commentedon Dec 12, 2025
Agreed!