App icon indicating copy to clipboard operation
App copied to clipboard

[$250] Members - Browser back buttton does not return to workspace page after viewing chat history

Open applause-bot[bot] opened this issue 3 weeks ago β€’ 92 comments

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.33-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: https://github.com/Expensify/App/pull/105050 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Workspace Settings

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Members.
  3. Invite a member.
  4. Click on the invited user.
  5. Click See chat history.
  6. Click browser back button.

Expected Result:

App will return to workspace members page.

Actual Result:

App remains on Spend page, although URL changes to workspace members URL.

Workaround:

Unknown

Platforms:

  • [ ] Android: App
  • [ ] Android: mWeb Chrome
  • [ ] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [x] Windows: Chrome
  • [x] MacOS: Chrome Safari

Screenshots/Videos

https://github.com/user-attachments/assets/7237b69e-7dab-4c1a-a271-501f049504ff

View all open jobs on GitHub

Applause Internal Information Exported by: Julia Ponikarchuk Bug ID: 7306616

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @MannA-001

applause-bot[bot] avatar Nov 06 '26 09:11 applause-bot[bot]

While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/fbc2f83de425943f2ed66bd098021e6265c1c051394cde7cf21a7359848b5edf

applause-bot[bot] avatar Nov 06 '26 09:11 applause-bot[bot]

You have been assigned to this deploy blocker because you recently merged this PR: https://github.com/Expensify/App/pull/105050

melvin-bot[bot] avatar Nov 06 '26 09:11 melvin-bot[bot]

@NikkiWines @sobitneupane you have been assigned to this deploy blocker because you reviewed the offending PR: https://github.com/Expensify/App/pull/105050

melvin-bot[bot] avatar Nov 06 '26 09:11 melvin-bot[bot]

πŸ’¬ A slack conversation has been started in #expensify-open-source

melvin-bot[bot] avatar Nov 06 '26 09:11 melvin-bot[bot]

:wave: 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

github-actions[bot] avatar Nov 06 '26 09:11 github-actions[bot]

@MelvinBot Could you please post a proposal for this issue?

sobitneupane avatar Nov 06 '26 09:11 sobitneupane

@MelvinBot Could you please post a proposal for this issue?

sobitneupane avatar Nov 06 '26 10:11 sobitneupane

@NikkiWines Since this is a minor issue, I don't think we need to revert the PR.

sobitneupane avatar Nov 06 '26 10:11 sobitneupane

I agree, but let's push up a fix of it asap πŸ™‡

NikkiWines avatar Nov 06 '26 13:11 NikkiWines

@MelvinBot Could you please post a proposal for this issue?

sobitneupane avatar Nov 06 '26 16:11 sobitneupane

Proposal

Preliminary β€” medium confidence. Source review supports this mechanism, but the saved/current navigation states at the failing browser Back have not been captured. This is not yet a runtime-verified fix.

What is the root cause of that problem?

The suspected cause is that browser Back mistakes removal of leading history padding for an ordinary last-entry pop. It dispatches GO_BACK to the root navigator instead of restoring the saved Members state. With only one root route, that action cannot change the screen, explaining how the URL could return to Members while Spend/Search remains visible.

Supporting code

These example histories are inferred from the code, not captured from the reported failure. If runtime states differ, this diagnosis needs revision.

What changes do you think we should make in order to solve the problem?

Tighten the ordinary-pop predicate in the existing React Navigation dependency patch:

  1. Require saved history to equal current history with its final entry removed, rather than merely checking that it has one fewer entry.
  2. Compare custom strings by value and route entries by key, with explicit type checks. Do not compare entire route objects or parameters, so legitimate pops retain live parameter updates.
  3. Keep the trailing-custom-entry guard and targeted GO_BACK. Otherwise, use the existing saved-state restoration fallback.

For [padding, Tab] β†’ [Tab], the stricter check fails and selects restoration of Members instead of an unhandled root Back.

Required validation before acceptance: capture the failing saved/current histories and dispatched action; then test the actual web linking handler for this case, ordinary Back preserving live parameters, custom history entries, and repeated Back/Forward. Verify both URL and visible Members state, including padding bookkeeping after restoration. No code changes or runtime validation of this proposal have been performed.

What alternative solutions did you explore? (Optional)

  • Disabling optimized Back whenever padding exists would unnecessarily reset valid navigation.
  • Removing the action target could pop an unrelated nested screen.
  • Changing only member-page navigation would avoid rather than correct the suspected shared-history issue. This proposal does not require reverting the feature PR.

Next Steps for Contributor+ team: To accept: Confirm the runtime state and regression behavior above before requesting implementation. To refine: @MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin’s proposal.


view run

MelvinBot avatar Nov 06 '26 16:11 MelvinBot

Current assignee @sobitneupane is eligible for the External assigner, not assigning anyone new.

melvin-bot[bot] avatar Nov 06 '26 16:11 melvin-bot[bot]

Job added to Upwork: https://www.upwork.com/jobs/~022118740289886855682

melvin-bot[bot] avatar Nov 06 '26 16:11 melvin-bot[bot]

🚨 Edited by proposal-police: This proposal was edited at 2026-11-18 11:20:32 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

On web, clicking See chat history from workspace Member details navigates to Search. Pressing browser Back changes the URL to the workspace members page, but the app visually remains on Search.

What is the root cause of that problem?

PR #105050 introduced ProfileUtils.navigateToChatHistory to share chat history navigation between ProfilePage and WorkspaceMemberDetailsPage.

ProfileUtils.navigateToChatHistory calls Navigation.revealRouteBeforeDismissingModal. That method serves modal submission flows. It dispatches the REPLACE_FULLSCREEN_UNDER_RHP action.

In workspace settings, the fullscreen route under the RHP is WORKSPACE_NAVIGATOR. REPLACE_FULLSCREEN_UNDER_RHP replaces WORKSPACE_NAVIGATOR with SEARCH_FULLSCREEN_NAVIGATOR. It then dismisses the RHP. This completely removes the workspace members screen from the root navigation state.

When the user clicks browser Back, the browser URL returns to the workspace members URL. The linking handler receives the pop event and dispatches GO_BACK to the root navigator. Because SEARCH_FULLSCREEN_NAVIGATOR sits at root index zero with no preceding screen, GO_BACK cannot pop. The app stays visually frozen on Search.

What changes do you think we should make in order to solve the problem?

In src/libs/ProfileUtils.ts, dismiss the RHP modal first and navigate to Search in afterTransition (the standard pattern used in SearchNLFilterPage.tsx):

--- a/src/libs/ProfileUtils.ts
+++ b/src/libs/ProfileUtils.ts
@@ -35,7 +35,8 @@ function navigateToChatHistory(accountID: number) {
         type: CONST.SEARCH.DATA_TYPES.CHAT,
         from: [String(accountID)],
     });
-    Navigation.revealRouteBeforeDismissingModal(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query}));
+    const route = ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query});
+    Navigation.dismissModal({afterTransition: () => Navigation.navigate(route)});
 }

Dismissing the RHP modal before navigating prevents linkTo from pushing Search above the RHP stack. When the user clicks browser Back, exactly one click returns directly to the Workspace Members screen with the URL and UI in sync.

I verified this fix on this branch with a regression test in WorkspaceMemberDetailsPageTest.tsx.

Results demonstrating the fix (Before / After videos)

Before (App remains on Search after browser Back):

https://github.com/user-attachments/assets/6cfdd332-0c30-4cb8-b430-9ad68e02aa3f

After (Browser Back cleanly returns to Workspace Members):

https://github.com/user-attachments/assets/48ce0a14-7239-4a74-ad06-a522373ec86f

What alternative solutions did you explore? (Optional)

  1. Patching React Navigation useLinking in @react-navigation/native to skip root history padding. This adds upstream maintenance overhead to our patch file for a flow that should not be a reveal in the first place.
  2. Plain Navigation.navigate: When an RHP modal is open, linkTo pushes TAB_NAVIGATOR above the RHP. Browser Back then re-opens Member Details instead of returning directly to Members.

Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~01cfe51584d8033bdc

samithreddychinni avatar Nov 06 '26 16:11 samithreddychinni

βœ… Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Nov 06 '26 16:11 melvin-bot[bot]

βœ… Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Nov 06 '26 17:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

When a user opens Workspaces > [Workspace] > Members, clicks on a member to open the Member Details RHP modal, clicks Member details > View chat history (which navigates to the Reports / Search fullscreen page), and then clicks the browser Back button, the URL updates to the workspace members route (/workspaces/<policyID>/members), but the screen stays stuck on the Reports (Search) page instead of returning to the Workspace Members page.

What is the root cause of that problem?

In src/libs/ProfileUtils.ts (lines 33–39, added in PR #105050), navigateToChatHistory(accountID: number) navigates to the search page using Navigation.revealRouteBeforeDismissingModal(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query})).

In src/libs/Navigation/Navigation.ts (lines 527–545), revealRouteBeforeDismissingModal dispatches REPLACE_FULLSCREEN_UNDER_RHP followed by dismissModal(). Inside the custom router (src/libs/Navigation/AppNavigator/createRootStackNavigator/RootStackRouter.ts), REPLACE_FULLSCREEN_UNDER_RHP replaces the underlying fullscreen route (WORKSPACE_NAVIGATOR) in the navigation state with SEARCH_FULLSCREEN_NAVIGATOR rather than pushing SEARCH_FULLSCREEN_NAVIGATOR on top of it, and does not sync browser history entries for a stack push. Consequently, when the user presses the browser Back button, the browser pops history back to /workspaces/<policyID>/members, or pops the modal entry, while the active fullscreen navigator in React Navigation state remains SEARCH_FULLSCREEN_NAVIGATOR.

What changes do you think we should make in order to solve the problem?

In src/libs/ProfileUtils.ts inside navigateToChatHistory(accountID: number):

  1. Replace Navigation.revealRouteBeforeDismissingModal(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query})) with Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query})) (or Navigation.dismissModal() followed by Navigation.isNavigationReady().then(() => Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query})))).
  2. This pushes SEARCH_FULLSCREEN_NAVIGATOR onto the root stack while preserving WORKSPACE_NAVIGATOR underneath in the navigation history stack, so pressing the browser Back button cleanly pops SEARCH_FULLSCREEN_NAVIGATOR and renders the Workspace Members page (WORKSPACE_NAVIGATOR).

What alternative solutions did you explore? (Optional)

We also explored modifying REPLACE_FULLSCREEN_UNDER_RHP in RootStackRouter.ts to push instead of replace, but revealRouteBeforeDismissingModal is intentionally designed for flows where the underlying fullscreen route should be replaced (such as closing an onboarding or confirmation flow). For navigateToChatHistory, standard Navigation.navigate after dismissing the modal is the right semantic because the user is navigating forward from Workspace Members to Search and expects Back to return to Workspace Members.

jeffrey-graham avatar Nov 07 '26 01:11 jeffrey-graham

πŸ“£ @jeffrey-graham! πŸ“£ Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details. Screen Shot 2022-11-16 at 4 42 54 PM Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

melvin-bot[bot] avatar Nov 07 '26 01:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

On Web and Desktop, when a user opens Workspaces > [Workspace] > Members, clicks on a workspace member to open WorkspaceMemberDetailsPage in the RHP, clicks See chat history (or View agent history), and then presses the browser Back button, the browser URL returns to /workspaces/:policyID/members (or the member details URL) while the UI stays stuck on the Search / Spend tab instead of returning to the Workspace Members page. The same broken browser Back behavior also occurs when clicking See chat history from a user's ProfilePage opened over Inbox.

What is the root cause of that problem?

  1. Forward user navigation (navigateToChatHistory) misuses Navigation.revealRouteBeforeDismissingModal: In src/libs/ProfileUtils.ts:33-39 (extracted in PR #105050 and called from both src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx:651 and src/pages/ProfilePage.tsx:327), navigateToChatHistory navigates to Search using Navigation.revealRouteBeforeDismissingModal:

    function navigateToChatHistory(accountID: number) {
        const query = buildQueryStringFromFilterFormValues({
            type: CONST.SEARCH.DATA_TYPES.CHAT,
            from: [String(accountID)],
        });
        Navigation.revealRouteBeforeDismissingModal(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query}));
    }
    

    revealRouteBeforeDismissingModal (src/libs/Navigation/Navigation.ts:1215-1284) is designed for one-way modal completion/submission flows (such as expense creation or workspace confirmation) where the modal's browser history entry should be replaced in-place (historyDelta === 0) rather than pushing a forward history entry.

  2. Exact mechanism why Browser Back gets stuck on Search (two-frame reveal padding + isPoppingLastEntry / GO_BACK):

    • Before clicking "See chat history":
      • Browser history entry 0 (/workspaces/:policyID/members): rootState.routes = [TabNavigator(WORKSPACE_NAVIGATOR)], rootState.history = [{type: 'route', key: 'TabNavigator-1'}] (length = 1).
      • Browser history entry 1 (/workspaces/:policyID/members/:accountID): rootState.routes = [TabNavigator(WORKSPACE_NAVIGATOR), RightModalNavigator], rootState.history = [{type: 'route', key: 'TabNavigator-1'}, {type: 'route', key: 'RightModalNavigator-1'}] (length = 2).
    • Frame 1 (REPLACE_FULLSCREEN_UNDER_RHP): In src/libs/Navigation/AppNavigator/createRootStackNavigator/GetStateForActionHandlers.ts:636-698, handleReplaceFullscreenUnderRHP switches the active tab inside the existing TabNavigator-1 route from WORKSPACE_NAVIGATOR to SEARCH_FULLSCREEN_NAVIGATOR (index: 2), while getFrozenHistoryStateForReplaceFullscreenUnderRHP freezes rootState.history at length 2 and snapshots pendingReveal = {rhpKey, routesLengthAtCapture: 2, historyLengthAtCapture: 2}.
    • Frame 2 (DISMISS_MODAL): When RightModalNavigator is popped, getRevealDismissState sees lengthDelta = 2 - 1 = 1 and prepends 'CUSTOM_HISTORY_ENTRY_REVEAL_PADDING' via buildPaddedHistory:
      rootState.routes = [TabNavigator-1 (focused on SEARCH_FULLSCREEN_NAVIGATOR)]
      rootState.history = ['CUSTOM_HISTORY_ENTRY_REVEAL_PADDING', {type: 'route', key: 'TabNavigator-1'}] // length = 2
      
      Because getHistoryLength(focusedState) - getHistoryLength(previousFocusedState) === 2 - 2 === 0, useLinking calls history.replace on browser entry 1 (/search?q=type%3Achat...).
    • When the user presses Browser Back (entry 1 -> entry 0): In patches/react-navigation/@react-navigation+native+7.4.1+001+initial.patch:143-162 (useLinking.js popstate handler, updated in PR #104842):
      const [currentFocused, recordFocused] = findMatchingState(currentState, record.state);
      const isPoppingCustomHistoryEntry = typeof currentFocused?.history?.at(-1) === 'string';
      if (previousIndex - index === 1 && currentFocused && recordFocused && !isPoppingCustomHistoryEntry && isPoppingLastEntry(currentFocused, recordFocused)) {
          dispatch({...CommonActions.goBack(), target: currentFocused.key}, ...);
      }
      
      Here:
      • currentFocused is the root stack (history = ['CUSTOM_HISTORY_ENTRY_REVEAL_PADDING', {key: 'TabNavigator-1'}], length = 2) and recordFocused is the saved root stack at /workspaces/:policyID/members (history = [{key: 'TabNavigator-1'}], length = 1).
      • Because 'CUSTOM_HISTORY_ENTRY_REVEAL_PADDING' is prepended at index 0 (buildPaddedHistory), currentFocused.history.at(-1) is {type: 'route', key: 'TabNavigator-1'} (an object, not a string), so isPoppingCustomHistoryEntry evaluates to false!
      • Even worse, upstream React Navigation's isPoppingLastEntry(currentFocused, recordFocused) checks currentHistory.length - recordHistory.length === 1 (2 - 1 === 1) and compares the prefix currentHistory.slice(0, -1) (['CUSTOM_HISTORY_ENTRY_REVEAL_PADDING']) against recordHistory ([{type: 'route', key: 'TabNavigator-1'}]) using isRecordEqual, which only checks a.type === b.type && a.key === b.key (undefined === undefined for a string vs {type: 'route'} is false, or when both have padding, true), or dispatches {...CommonActions.goBack(), target: currentFocused.key} to the root stack. Because the root stack only has routes.length === 1 (index: 0), StackRouter cannot GO_BACK at index 0, so the navigation state remains stuck on SEARCH_FULLSCREEN_NAVIGATOR while the browser URL sits on /workspaces/:policyID/members!

What changes do you think we should make in order to solve the problem?

  1. Use Navigation.navigate in navigateToChatHistory (src/libs/ProfileUtils.ts:33-39): Clicking See chat history / View agent history from WorkspaceMemberDetailsPage or ProfilePage is a standard forward navigation, not a one-way modal form submission. Replace Navigation.revealRouteBeforeDismissingModal with Navigation.navigate:

    /** Opens a chat search filtered to the messages sent by the given account */
    function navigateToChatHistory(accountID: number) {
        const query = buildQueryStringFromFilterFormValues({
            type: CONST.SEARCH.DATA_TYPES.CHAT,
            from: [String(accountID)],
        });
        Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query}));
    }
    

    When Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute(...)) runs while RIGHT_MODAL_NAVIGATOR is on top of the root stack, linkTo (src/libs/Navigation/helpers/linkTo/index.ts:241-244) sees currentTopRoute?.name !== NAVIGATORS.TAB_NAVIGATOR and action.payload.name === NAVIGATORS.TAB_NAVIGATOR, converting the action to PUSH. That pushes the Search TAB_NAVIGATOR cleanly onto the stack without mutating the underlying WORKSPACE_NAVIGATOR tab or injecting CUSTOM_HISTORY_ENTRY_REVEAL_PADDING, so pressing Browser Back returns directly to the previous screen (WorkspaceMemberDetailsPage -> WorkspaceMembersPage).

  2. Also harden isPoppingCustomHistoryEntry in patches/react-navigation/@react-navigation+native+7.4.1+001+initial.patch (Defense-in-Depth for all genuine revealRouteBeforeDismissingModal flows): In patches/react-navigation/@react-navigation+native+7.4.1+001+initial.patch:149-150, isPoppingCustomHistoryEntry only checks typeof currentFocused?.history?.at(-1) === 'string' (trailing modal sentinels), completely missing leading CUSTOM_HISTORY_ENTRY_REVEAL_PADDING entries when currentFocused.routes.length === recordFocused.routes.length (such as cross-tab revealRouteBeforeDismissingModal where handleReplaceFullscreenUnderRHP switches tabs inside the existing TAB_NAVIGATOR without adding a root route). We should also check whether the history length difference comes from leading reveal-padding entries (currentFocused?.history?.at(0) === 'CUSTOM_HISTORY_ENTRY_REVEAL_PADDING' when currentFocused?.routes?.length === recordFocused?.routes?.length), so useLinking falls back to resetRoot(record.state) instead of dispatching a no-op GO_BACK to a 1-route root stack.

  3. Update existing unit test in tests/ui/ProfilePageTest.tsx:709-714 and add test coverage in tests/ui/WorkspaceMemberDetailsPageTest.tsx:

    • In tests/ui/ProfilePageTest.tsx, update line 709 to assert expect(Navigation.navigate).toHaveBeenCalledWith(...).
    • In tests/ui/WorkspaceMemberDetailsPageTest.tsx, add a test verifying that pressing member-chat-history-menu-item calls Navigation.navigate with ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query}).

What alternative solutions did you explore? (Optional)

  • Passing {forceReplace: true} or dismissing the modal before navigating: Dismissing the modal first and then navigating would either require two back presses or lose the RHP entry when the user expects Back from Search to return to the Workspace/Profile flow. Using Navigation.navigate matches how other forward links from RHP details pages work across the app via linkTo (src/libs/Navigation/helpers/linkTo/index.ts:241-244).

zaidrain06 avatar Nov 07 '26 19:11 zaidrain06

Proposal

What is the root cause of that problem?

In src/libs/ProfileUtils.ts (lines 34–40):

function navigateToChatHistory(accountID: number) {
    const query = buildQueryStringFromFilterFormValues({
        type: CONST.SEARCH.DATA_TYPES.CHAT,
        from: [String(accountID)],
    });
    Navigation.revealRouteBeforeDismissingModal(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query}));
}

When a user clicks "See chat history" inside WorkspaceMemberDetailsPage, navigateToChatHistory calls Navigation.revealRouteBeforeDismissingModal. revealRouteBeforeDismissingModal is designed for flows where the modal's entry route should be completely replaced by the target route before closing the modal stack. In this context, it strips the underlying workspace members route (/settings/workspaces/:policyID/members) from the history stack and replaces it with ROUTES.SEARCH_ROOT.

Consequently, on Web, the workspace members page is discarded from the browser history entry. When the user clicks the browser back button from the Search results page, browser history does not have the workspace members page to return to, taking the user back to Home or an earlier unrelated page.

What changes do you think we should make in order to solve the problem?

  1. In src/libs/ProfileUtils.ts, update navigateToChatHistory to navigate normally without replacing the underlying route:
    • Call Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute({query, rawQuery: query})) directly (or dismiss the modal while preserving the previous history stack entry so the workspace route stays in history).
  2. Alternatively, if navigating from workspace settings, allow passing an optional backTo or handle dismissal via Navigation.dismissModal() followed by Navigation.navigate(), ensuring the workspace route remains intact in the browser history stack.

What alternative solutions did you explore? (Optional)

Setting explicit backTo: ROUTES.WORKSPACE_MEMBERS.getRoute(policyID) query parameter on SEARCH_ROOT. However, avoiding revealRouteBeforeDismissingModal in favor of standard stack navigation is much cleaner and fixes the back behavior universally across Profile and Workspace member views.

Contributor Details

Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~0179cdc82689f205c7

TassioSales avatar Nov 08 '26 00:11 TassioSales