diff --git a/webrdp/assets/file.js b/webrdp/assets/file.js index 7886446..61b3bf2 100644 --- a/webrdp/assets/file.js +++ b/webrdp/assets/file.js @@ -22,7 +22,7 @@ function updateShareChoice(shareName, event) { return false; } } -function getCurrentPath() { return window.filegatewayUrl + window.fileSessionId + "/" + encodeURI(window.fileShareName) + "/" + encodeURI(window.currentPath.join("/")) + "/" } +function getCurrentPath() { return window.filegatewayUrl + window.fileSessionId + "/" + encodeURI(window.fileShareName) + "/" + encodeURI(window.currentPath.join("/")) + (window.currentPath.length > 0 ? "/" : "") } function getSize(fileSize) { var size = parseFloat(fileSize); var units = ['B', 'KB', 'MB', 'GB', 'TB'];