From efbd5e9843d606d639dd50127ffa28a1cb0141fc Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Thu, 25 May 2023 21:55:24 +0700 Subject: [PATCH] Update download url --- src/app/(__components)/compListLayout.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/(__components)/compListLayout.tsx b/src/app/(__components)/compListLayout.tsx index 69db18a..9231d73 100644 --- a/src/app/(__components)/compListLayout.tsx +++ b/src/app/(__components)/compListLayout.tsx @@ -320,12 +320,12 @@ function Action({ isDownloadable?: boolean; }) { const copyLink = useCopyText(); - let url: string = ""; + let url: string = apiConfig.basePath; if (path) { - url = `${apiConfig.basePath}${path}`; + url += path; } if (path && isDownloadable) { - url = `${apiConfig.basePath}/download${path}`; + url += `/download${path}`; } return (