diff --git a/packages/app/src/pages/_app.tsx b/packages/app/src/pages/_app.tsx index 5f1c9499d3..862d9b0f97 100644 --- a/packages/app/src/pages/_app.tsx +++ b/packages/app/src/pages/_app.tsx @@ -71,7 +71,7 @@ const AppDefender = ({ children }: PropsWithChildren) => { const { synced } = useAppState(); useEffect(() => { - if (router.asPath === '/') { + if (['/index.html', '/'].includes(router.asPath)) { router.replace('/workspace'); } }, [router]);