diff --git a/src/frontend/apps/impress/src/features/auth/components/Auth.tsx b/src/frontend/apps/impress/src/features/auth/components/Auth.tsx index 87023c80..2cf007e5 100644 --- a/src/frontend/apps/impress/src/features/auth/components/Auth.tsx +++ b/src/frontend/apps/impress/src/features/auth/components/Auth.tsx @@ -43,7 +43,7 @@ export const Auth = ({ children }: PropsWithChildren) => { */ if (!authenticated && !pathAllowed) { if (config?.FRONTEND_HOMEPAGE_FEATURE_ENABLED) { - void replace('/login'); + void replace('/home'); } else { gotoLogin(); } @@ -55,9 +55,9 @@ export const Auth = ({ children }: PropsWithChildren) => { } /** - * If the user is authenticated and the path is the login page, we redirect to the home page. + * If the user is authenticated and the path is the home page, we redirect to the index. */ - if (pathname === '/login' && authenticated) { + if (pathname === '/home' && authenticated) { void replace('/'); return ( diff --git a/src/frontend/apps/impress/src/pages/home/index.tsx b/src/frontend/apps/impress/src/pages/home/index.tsx new file mode 100644 index 00000000..dca21233 --- /dev/null +++ b/src/frontend/apps/impress/src/pages/home/index.tsx @@ -0,0 +1,8 @@ +import { HomeContent } from '@/features/home'; +import { NextPageWithLayout } from '@/types/next'; + +const Page: NextPageWithLayout = () => { + return ; +}; + +export default Page;