diff --git a/src/routes/repo/[projectId]/FileCard.svelte b/src/routes/repo/[projectId]/FileCard.svelte index 05ee25f6b..73ac0da61 100644 --- a/src/routes/repo/[projectId]/FileCard.svelte +++ b/src/routes/repo/[projectId]/FileCard.svelte @@ -38,7 +38,7 @@ const parts = filepath.split('/'); if (parts.length == 0) return ''; return ( - parts.slice(0, -2).join('/') + + parts.slice(0, -1).join('/') + '/' + parts[parts.length - 1] + ''