Skip to content

Commit

Permalink
Merge pull request #37283 from davidgelhar/fix/29825
Browse files Browse the repository at this point in the history
allow navigating back from SAML signin
  • Loading branch information
thienlnam authored Mar 7, 2024
2 parents 98129e6 + 2d38101 commit ffa731a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/Navigation/NavigationRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function parseAndLogRoute(state: NavigationState) {

const focusedRoute = findFocusedRoute(state);

if (focusedRoute?.name !== SCREENS.NOT_FOUND) {
if (focusedRoute?.name !== SCREENS.NOT_FOUND && focusedRoute?.name !== SCREENS.SAML_SIGN_IN) {
updateLastVisitedPath(currentPath);
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/signin/SAMLSignInPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {SAMLSignInPageOnyxProps, SAMLSignInPageProps} from './types';

function SAMLSignInPage({credentials}: SAMLSignInPageProps) {
useEffect(() => {
window.open(`${CONFIG.EXPENSIFY.SAML_URL}?email=${credentials?.login}&referer=${CONFIG.EXPENSIFY.EXPENSIFY_CASH_REFERER}`, '_self');
window.location.replace(`${CONFIG.EXPENSIFY.SAML_URL}?email=${credentials?.login}&referer=${CONFIG.EXPENSIFY.EXPENSIFY_CASH_REFERER}`);
}, [credentials?.login]);

return <SAMLLoadingIndicator />;
Expand Down

0 comments on commit ffa731a

Please sign in to comment.