Skip to content

Commit

Permalink
Merge branch 'main' into kidroca/feature/react-native-web-image-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kidroca committed Dec 5, 2023
2 parents 8fed789 + f80fbe3 commit 18000a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as Url from '@libs/Url';
import CONFIG from '@src/CONFIG';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import ROUTES, {Route} from '@src/ROUTES';

let isNetworkOffline = false;
Onyx.connect({
Expand Down Expand Up @@ -100,7 +100,7 @@ function openLink(href: string, environmentURL: string, isAttachment = false) {
// If we are handling a New Expensify link then we will assume this should be opened by the app internally. This ensures that the links are opened internally via react-navigation
// instead of in a new tab or with a page refresh (which is the default behavior of an anchor tag)
if (internalNewExpensifyPath && hasSameOrigin) {
Navigation.navigate(internalNewExpensifyPath);
Navigation.navigate(internalNewExpensifyPath as Route);
return;
}

Expand Down

0 comments on commit 18000a2

Please sign in to comment.