diff --git a/src/app/(__components)/compListLayout.tsx b/src/app/(__components)/compListLayout.tsx index 9231d73..2f50058 100644 --- a/src/app/(__components)/compListLayout.tsx +++ b/src/app/(__components)/compListLayout.tsx @@ -322,11 +322,11 @@ function Action({ const copyLink = useCopyText(); let url: string = apiConfig.basePath; if (path) { + if (isDownloadable) { + url += "/download"; + } url += path; } - if (path && isDownloadable) { - url += `/download${path}`; - } return (