diff --git a/server/src/main/resources/web/compress.ftl b/server/src/main/resources/web/compress.ftl index 2c27a9d9..b929d0c6 100644 --- a/server/src/main/resources/web/compress.ftl +++ b/server/src/main/resources/web/compress.ftl @@ -61,7 +61,7 @@ var currentUrl = window.location.href; var keyword = getQueryParam(currentUrl, 'watermarkTxt'); function chooseNode(event, treeId, treeNode) { if (!treeNode.isParent) { - var path = '${baseUrl}'+encodeURIComponent(treeNode.id)+"?kkCompressfileKey="+'${fileTree}'+"&kkCompressfilepath="+encodeURIComponent(treeNode.id)+"&fullfilename="+encodeURIComponent(treeNode.name); + var path = '${baseUrl}'+treeNode.id+"?kkCompressfileKey="+'${fileTree}'+"&kkCompressfilepath="+encodeURIComponent(treeNode.id)+"&fullfilename="+encodeURIComponent(treeNode.name); if (isNotEmpty(keyword)){ location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path))+"&watermarkTxt="+keyword; }else{