summaryrefslogtreecommitdiff
path: root/components/project
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-10-23 03:25:17 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-10-23 03:25:17 +0000
commit835010104c25c370c1def1f2de52f518058f8b46 (patch)
treea3195a9adfed58e110ef683630d4464ff95a52dd /components/project
parentc64264ac25716256c0c7c4f56e6f459747f4ef11 (diff)
(임수민) 데이터룸 파일권한, 리디렉트 수정
Diffstat (limited to 'components/project')
-rw-r--r--components/project/ProjectList.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/project/ProjectList.tsx b/components/project/ProjectList.tsx
index 5c01070e..fbb0f42a 100644
--- a/components/project/ProjectList.tsx
+++ b/components/project/ProjectList.tsx
@@ -113,7 +113,9 @@ const fetchProjects = async () => {
if (totalProjects.length === 1) {
const singleProject = totalProjects[0];
- router.push(`/evcp/data-room/${singleProject.id}/files`);
+ const currentDomain = pathname?.includes('/partners') ? 'partners' : 'evcp';
+ const lng = pathname?.split('/')[1];
+ router.push(`/${lng}/${currentDomain}/data-room/${singleProject.id}/files`);
}
} catch (error) {
toast({