From 741ca48f9c4ad6a2db1c95aae99eda93bbe8482c Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Sun, 5 Mar 2023 21:40:21 -0500 Subject: [PATCH] [F] Fix directory path --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }