From 1cf7afef942a9567d4c71669edbbb802572b2541 Mon Sep 17 00:00:00 2001 From: ivan-aksamentov Date: Wed, 8 Nov 2023 01:59:35 +0100 Subject: [PATCH] feat(web): allow autosuggest page as entry point --- packages_rs/nextclade-web/src/pages/_app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages_rs/nextclade-web/src/pages/_app.tsx b/packages_rs/nextclade-web/src/pages/_app.tsx index c4b2e96c3..4c3daf765 100644 --- a/packages_rs/nextclade-web/src/pages/_app.tsx +++ b/packages_rs/nextclade-web/src/pages/_app.tsx @@ -182,7 +182,7 @@ export function MyApp({ Component, pageProps, router }: AppProps) { const fallback = useMemo(() => , []) useEffect(() => { - if (process.env.NODE_ENV !== 'development' && !['/', '/loading'].includes(router.pathname)) { + if (process.env.NODE_ENV !== 'development' && !['/', '/loading', '/dataset-suggest'].includes(router.pathname)) { void router.replace('/') // eslint-disable-line no-void }