File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/shared/src/components Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ import { useSearchResultsLayout } from '../hooks/search/useSearchResultsLayout';
7171import useCustomDefaultFeed from '../hooks/feed/useCustomDefaultFeed' ;
7272import { useSearchContextProvider } from '../contexts/search/SearchContext' ;
7373import { isDevelopment , isProductionAPI , webappUrl } from '../lib/constants' ;
74+ import { checkIsExtension } from '../lib/func' ;
7475import { useReadingReminderHero } from '../hooks/notifications/useReadingReminderHero' ;
7576import { useTrackQuestClientEvent } from '../hooks/useTrackQuestClientEvent' ;
7677import { useReadingReminderVariation } from '../hooks/notifications/useReadingReminderVariation' ;
@@ -639,6 +640,11 @@ export default function MainFeedLayout({
639640
640641 const onTabChange = useCallback (
641642 ( clickedTab : ExploreTabs ) => {
643+ if ( clickedTab === ExploreTabs . BestOf && checkIsExtension ( ) ) {
644+ window . open ( `${ webappUrl } posts/best-of` , '_blank' , 'noopener' ) ;
645+ return ;
646+ }
647+
642648 if ( onNavTabClick ) {
643649 onNavTabClick ( tabToUrl [ clickedTab ] ) ;
644650 }
You can’t perform that action at this time.
0 commit comments