From 1db30643d32619a352e759799a24e8f54b8137bf Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Thu, 30 Oct 2025 19:14:25 +0900
Subject: (김준회) 멀티 도메인 로그아웃시 경로 문제 처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/layout/HeaderDataroom.tsx | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

(limited to 'components/layout/HeaderDataroom.tsx')

diff --git a/components/layout/HeaderDataroom.tsx b/components/layout/HeaderDataroom.tsx
index 0981b24b..04d61a8d 100644
--- a/components/layout/HeaderDataroom.tsx
+++ b/components/layout/HeaderDataroom.tsx
@@ -138,12 +138,7 @@ export function HeaderDataRoom() {
                                         <Link href={`/${lng}/evcp/settings`}>설정</Link>
                                     </DropdownMenuItem>
                                     <DropdownMenuSeparator />
-                                    <DropdownMenuItem onSelect={() => {
-                                        const logoutUrl = domain === 'partners' 
-                                        ? 'https://shidataroom.com/en/partners'
-                                        : `/${lng}/${domain}`;
-                                    signOut({ callbackUrl: logoutUrl });
-                                    }}>
+                                    <DropdownMenuItem onSelect={() => signOut({ callbackUrl: `${window.location.origin}/${lng}/evcp` })}>
                                         로그아웃
                                     </DropdownMenuItem>
                                 </DropdownMenuContent>
-- 
cgit v1.2.3

