Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: refresh can jump first workspace

DiamondThree3f794a959b98
diff --git a/packages/app/src/pages/_app.tsx b/packages/app/src/pages/_app.tsx
index bc06e51a42..b881f9c07b 100644
--- a/packages/app/src/pages/_app.tsx
+++ b/packages/app/src/pages/_app.tsx
@@ -71,7 +71,7 @@ const AppDefender = ({ children }: PropsWithChildren) => {
const router = useRouter();
useEffect(() => {
- if (router.pathname === '/') {
+ if (router.asPath === '/') {
router.replace('/workspace');
}
}, [router]);