From f6368c6750295a1a1661c046a0c175e84f895ca9 Mon Sep 17 00:00:00 2001 From: RaymondLim Date: Tue, 22 May 2012 15:45:50 -0700 Subject: [PATCH] We need to call decode the application path returned from window.location.pathname. Otherwise the path is in utf-8 encoding. --- src/project/ProjectManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project/ProjectManager.js b/src/project/ProjectManager.js index cf3c0e1a11b..737378d7d32 100644 --- a/src/project/ProjectManager.js +++ b/src/project/ProjectManager.js @@ -536,7 +536,7 @@ define(function (require, exports, module) { * @return {!string} fullPath reference */ function _getDefaultProjectPath() { - var loadedPath = window.location.pathname; + var loadedPath = decodeURI(window.location.pathname); var bracketsSrc = loadedPath.substr(0, loadedPath.lastIndexOf("/")); bracketsSrc = FileUtils.convertToNativePath(bracketsSrc);