Update download url

This commit is contained in:
mbaharip
2023-05-25 21:55:24 +07:00
parent 5b39ad002b
commit efbd5e9843
+3 -3
View File
@@ -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 (
<div