From 929bad0515d158d008ecdfa09ed00c4dff710614 Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Tue, 10 Dec 2024 13:49:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20layout=20=EC=97=90=EC=84=9C=20=EB=9D=BC?= =?UTF-8?q?=EC=9A=B0=ED=84=B0=20=EB=B6=84=EA=B8=B0=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/layout.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/layout.js b/src/app/layout.js index fbe6c39a..e8fc6532 100644 --- a/src/app/layout.js +++ b/src/app/layout.js @@ -55,6 +55,10 @@ export default async function RootLayout({ children }) { redirect('/login') } + if (headerPathname === '/login' && session.isLoggedIn) { + redirect('/main') + } + return (