diff --git a/src/components/Search/SearchRouter/SearchRouterList.tsx b/src/components/Search/SearchRouter/SearchRouterList.tsx index 9830ea4e9506..d8a373183077 100644 --- a/src/components/Search/SearchRouter/SearchRouterList.tsx +++ b/src/components/Search/SearchRouter/SearchRouterList.tsx @@ -167,7 +167,7 @@ function SearchRouterList( if ('reportID' in item && item?.reportID) { Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(item?.reportID)); } else if ('login' in item) { - Report.navigateToAndOpenReport(item?.login ? [item.login] : []); + Report.navigateToAndOpenReport(item.login ? [item.login] : [], false); } }, [closeAndClearRouter, onSearchSubmit, currentQuery, updateUserSearchQuery], diff --git a/src/components/Search/SearchRouter/SearchRouterModal.tsx b/src/components/Search/SearchRouter/SearchRouterModal.tsx index 7e403461dd34..62cdb38246b4 100644 --- a/src/components/Search/SearchRouter/SearchRouterModal.tsx +++ b/src/components/Search/SearchRouter/SearchRouterModal.tsx @@ -2,6 +2,7 @@ import React from 'react'; import FocusTrapForModal from '@components/FocusTrap/FocusTrapForModal'; import Modal from '@components/Modal'; import useResponsiveLayout from '@hooks/useResponsiveLayout'; +import * as Browser from '@libs/Browser'; import CONST from '@src/CONST'; import SearchRouter from './SearchRouter'; import {useSearchRouterContext} from './SearchRouterContext'; @@ -15,12 +16,17 @@ function SearchRouterModal() { return ( - {isSearchRouterDisplayed && } + {isSearchRouterDisplayed && ( + + + + )} ); }