diff --git a/lib/client/dom.js b/lib/client/dom.js index fd5c6736..d2a792d7 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1109,10 +1109,13 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; * @param currentFile - current file by default */ this.getCurrentPath = function(currentFile) { - var name = this.getCurrentName(currentFile), - path = this.getCurrentDirPath(); + var current = currentFile || DOM.getCurrentFile(), + element = DOM.getByTag('a', current)[0], + path = element.getAttribute('href'); - return path + name; + path = Util.rmStr(path, CloudFunc.FS); + + return path; }; /**