Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/libs/actions/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import ONYXKEYS from '@src/ONYXKEYS';
import type {Route} from '@src/ROUTES';
import ROUTES from '@src/ROUTES';
import SCREENS from '@src/SCREENS';
import {hasCompletedGuidedSetupFlowSelector} from '@src/selectors/Onboarding';
import type {Beta, IntroSelected, Report} from '@src/types/onyx';
import {doneCheckingPublicRoom, navigateToConciergeChat, openReport} from './Report';
import {canAnonymousUserAccessRoute, isAnonymousUser, signOutAndRedirectToSignIn, waitForUserSignIn} from './Session';
Expand Down Expand Up @@ -363,7 +364,7 @@ function openReportFromDeepLink(
}
};

if (isAnonymousUser()) {
if (hasCompletedGuidedSetupFlowSelector(val) || isAnonymousUser()) {
Comment thread
nkdengineer marked this conversation as resolved.
Resolved
Comment thread
nkdengineer marked this conversation as resolved.
Resolved

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change caused regression.
Login page has /Home route and after login, it's possible that this route is treated as deep link and user is navigated to this screen, which leads to not found page.

Repro step:

  1. Logout if already logged in
  2. Refresh browser
  3. Login with existing account
  4. Enter magic code

handleDeeplinkNavigation();
}
});
Expand Down
Loading