diff --git a/src/App.tsx b/src/App.tsx index 3610b62..fea3162 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -59,7 +59,7 @@ function getIcon(f: File) function getHref(f: File) { - return getType(f) == "directory" ? urlJoin(fullPath, f.name) : urlJoin(host, filePath, f.name) + return getType(f) == "directory" ? (urlJoin(fullPath, f.name) + "/") : urlJoin(host, filePath, f.name) // return urlJoin(fullPath, f.name) }