diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/project/ProjectList.tsx | 4 |
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({ |
