Skip to content

[$250] Travel - Opening travel in OD does not opens ND experience, instead "it's not here" page #78875

Closed

Description

@lanitochka17

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: v.9.2.93-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: https://test-management.browserstack.com/projects/2219752/test-runs/TR-2662/folder/13176927/41237638/1106546279
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: Android
App Component: Other

Action Performed:

Precondition: Use expensifail account (+), has a workspace and enable travel feature.

  1. Log in with an user that has access to both ND and OD experiences.
  2. Navigate to the OD experience.
  3. Click on Travel tab in LHN
  4. Verify the ND experience opens

Additional: Tap on "Try New Expensify" > Check Travel tab is enable in WS and FAB

Expected Result:

The Travel page should be displayed

Actual Result:

Page not here is displayed

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Bug7041870_1767649465262.document_5107308116056212849.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022009305930305069301
  • Upwork Job ID: 2009305930305069301
  • Last Price Increase: 2026-01-28
Issue OwnerCurrent Issue Owner: @stitesExpensify
Issue OwnerCurrent Issue Owner: @greg-schroeder

Activity

  1. added
    Daily
    Bug
    on Jan 5, 2026
  2. melvin-bot commented on Jan 5, 2026

    @melvin-bot

    Triggered auto assignment to @greg-schroeder (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.

  3. samranahm commented on Jan 5, 2026

    @samranahm
    Contributor

    Proposal

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

    Travel OD/ND Transition Shows "Page Not Here" Instead of Opening Travel Experience

    When users click the Travel tab in OldDot (Expensify Classic), they should be transitioned to NewDot's Travel experience. Instead, they see a "Page not here" error screen.

    What is the root cause of that problem?

    When OldDot transitions users to NewDot for the Travel feature, it uses the standard transition URL mechanism with an exitTo parameter pointing to the Travel route (e.g., exitTo=travel or exitTo=travel?policyID=...).

    setUpPoliciesAndNavigate function handles OldDot to NewDot transitions, but it only has special handling for workspace creation (exitTo=workspace/new). For all other routes, it directly navigates to the exitTo route value without any preprocessing.

    The Travel route requires special handling because

    1. It can include query parameters like policyID that need to be properly extracted and passed
    2. The route needs to use ROUTES.TRAVEL_MY_TRIPS.getRoute() to properly format the route with parameters

    Without this special handling, the navigation system receives a wrong route string and cannot resolve it, resulting in the "Page not here" fallback screen.

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

    We need to add special handling for Travel route transitions in the setUpPoliciesAndNavigate function, similar to how workspace creation is handled.

    After the workspace creation check, add a Travel route handler that:

    1. Detects when the exitTo parameter starts with 'travel'
    2. Extracts the policyID query parameter if present
    3. Uses ROUTES.TRAVEL_MY_TRIPS.getRoute() to properly format the navigation with the policyID parameter
    // Handle Travel route transition from OldDot by extracting policyID parameter
    const isTravelRoute = !isLoggingInAsNewUser && isTransitioning && exitTo?.startsWith('travel');
    if (isTravelRoute && exitTo) {
        const policyID = url.searchParams.get('policyID') ?? undefined;
        Navigation.waitForProtectedRoutes()
            .then(() => {
                Navigation.navigate(ROUTES.TRAVEL_MY_TRIPS.getRoute(policyID));
            })
            .then(endSignOnTransition);
        return;
    }

    This should be added here, right after the workspace creation handler

    App/src/libs/actions/App.ts

    Lines 605 to 614 in 4dcaac8

    introSelected,
    policyOwnerEmail,
    policyName,
    transitionFromOldDot: true,
    makeMeAdmin,
    activePolicyID,
    currentUserAccountIDParam: currentSessionData.accountID ?? CONST.DEFAULT_NUMBER_ID,
    currentUserEmailParam: currentSessionData.email ?? '',
    });
    return;

    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.

  4. truph01 commented on Jan 6, 2026

    @truph01
    Contributor

    Proposal

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

    Page not here is displayed

    What is the root cause of that problem?

    When users press Travel in OD, we’ll open /travel without policyID

    https://github.com/Expensify/Mobile-Expensify/blob/ac305839e4ada6b0b426c13e3183bc7606592211/app/Controllers/SlidingMenuController.js#L411

    So we’ll show not found page in

    <AccessOrNotFoundWrapper policyID={policyID}>

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

    We should pass the policyID to the url

    if (pageName === SlidingMenuController.PAGES.TRIPS) {
                var activePolicyID = self.app.getActivePolicy().getID();
                if (self.app.isTravelEnabled()) {
                    API.Travel_GenerateSpotnanaToken({
                        policyID: activePolicyID
                    }).done(function (json) {
                        var travelDotURL = API.buildTravelDotURL(json.spotnanaToken, json.isTestAccount);
                        yaplOpenBrowser(travelDotURL, _.noop, _.noop);
                    }).fail(function (error) {
                        logInfo('Failed to generate spotnanaToken ' + error);
                        TryNewDotManager.navigateToNewDot({
                            deeplink: API.getNewDotUrlFromPath('travel?policyID=' + activePolicyID),
                            isSingleNewDotEntry: true
                        });
                    });
                    return;
                }
                TryNewDotManager.navigateToNewDot({
                    deeplink: API.getNewDotUrlFromPath('travel?policyID=' + activePolicyID),
                    isSingleNewDotEntry: true
                });
                return;
            }
    

    What alternative solutions did you explore? (Optional)

  5. ShridharGoel commented on Jan 6, 2026

    @ShridharGoel
    Contributor

    Proposal

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

    Opening travel in OD does not opens ND experience, instead "it's not here" page

    What is the root cause of that problem?

    The Travel landing page only reads policyID from the route params. When the route is /travel without a policyID, the page passes undefined to AccessOrNotFoundWrapper, which triggers the not found view.

    function MyTripsPage({route}: MyTripsPageProps) {
    const policyID = route.params?.policyID;
    const {translate} = useLocalize();
    return (
    <AccessOrNotFoundWrapper policyID={policyID}>

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

    Add a fallback for policyID in the Travel landing page. If the route param is missing, use the active policy ID or the default paid policy.

    Updated code:

    function MyTripsPage({route}: MyTripsPageProps) {
        const [activePolicyID] = useOnyx(ONYXKEYS.NVP_ACTIVE_POLICY_ID, {canBeMissing: true});
        const defaultExpensePolicy = useDefaultExpensePolicy();
        const policyID = route.params?.policyID ?? activePolicyID ?? defaultExpensePolicy?.id;
        const {translate} = useLocalize();
    
        return (
            <AccessOrNotFoundWrapper policyID={policyID}>
  6. added
    External
    on Jan 8, 2026
  7. changed the title [-]Travel - Opening travel in OD does not opens ND experience, instead "it's not here" page[/-] [+][$250] Travel - Opening travel in OD does not opens ND experience, instead "it's not here" page[/+] on Jan 8, 2026
  8. melvin-bot commented on Jan 8, 2026

    @melvin-bot
  9. added
    Help Wanted
    on Jan 8, 2026
  10. melvin-bot commented on Jan 8, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @QichenZhu (External)

  11. 59 remaining items

  12. QichenZhu commented on Mar 23, 2026

    @QichenZhu
    Contributor

    @greg-schroeder @stitesExpensify, please remove the Reviewing label and bump to Daily as payment is due

  13. removed
    Reviewing
    on Mar 23, 2026
  14. melvin-bot commented on Mar 23, 2026

    @melvin-bot

    @stitesExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  15. melvin-bot commented on Mar 23, 2026

    @melvin-bot

    @stitesExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  16. added
    Awaiting Payment
    on Mar 24, 2026
  17. melvin-bot commented on Mar 24, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  18. mallenexpensify commented on Mar 24, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor: @truph01 due $250 via NewDot
    Contributor+: @QichenZhu due $250 via NewDot

    I think that's correct. Please comment/reopen if not.

  19. QichenZhu commented on Apr 17, 2026

    @QichenZhu
    Contributor

    FYI there's a related issue with unclear root cause that is potentially a regression of this issue.

  20. garrettmknight commented on May 22, 2026

    @garrettmknight
    Contributor

    $250 approved for @truph01

  21. QichenZhu commented on May 25, 2026

    @QichenZhu
    Contributor
  22. trjExpensify commented on May 26, 2026

    @trjExpensify
    Contributor

    approved $250 for @QichenZhu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions