aboutsummaryrefslogtreecommitdiff
path: root/render.js
diff options
context:
space:
mode:
Diffstat (limited to 'render.js')
-rw-r--r--render.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.js b/render.js
index 33ef58a..5de814e 100644
--- a/render.js
+++ b/render.js
@@ -98,7 +98,7 @@ const propagate_nice_name = prefix => tree => {
if (splitted.length > 0) {
tree.nice_path = splitted.slice(0, -1)
tree.nice_name = splitted[splitted.length - 1].split('.')[0]
- tree.url = without_prefix
+ tree.url = tree.type == 'folder' ? without_prefix + '/' : without_prefix
log('[propagate_nice_name]', [...tree.nice_path, tree.nice_name].join('|'))
}