diff --git a/server/src/main/resources/web/compress.ftl b/server/src/main/resources/web/compress.ftl index 4c588cd1..873e3dc8 100644 --- a/server/src/main/resources/web/compress.ftl +++ b/server/src/main/resources/web/compress.ftl @@ -51,7 +51,7 @@ }; function chooseNode(event, treeId, treeNode) { if (!treeNode.isParent) { - var path = '${baseUrl}'+ treeNode.id.split("/").map(name=>encodeURIComponent(name)).join("/") + "?kkCompressfileKey=" + encodeURIComponent('${fileTree}')+"&kkCompressfilepath=" + encodeURIComponent(treeNode.id)+"&fullfilename="+encodeURIComponent(treeNode.name); + var path = '${baseUrl}' + treeNode.id + "?kkCompressfileKey=" + encodeURIComponent('${fileTree}')+"&kkCompressfilepath=" + encodeURIComponent(treeNode.id)+"&fullfilename="+encodeURIComponent(treeNode.name); location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path)); } }