Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1748 from DennisKehrig/dk/url-decode
Browse files Browse the repository at this point in the history
Bugfix: GotoAgent did not work with paths containing spaces (like "Brackets Sprint 14")
  • Loading branch information
redmunds committed Oct 3, 2012
2 parents 4c7b775 + e41de4a commit 943433f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LiveDevelopment/Agents/GotoAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ define(function GotoAgent(require, exports, module) {
url = _urlWithoutQueryString(url);
// Extract the path, also strip the third slash when on Windows
var path = url.slice(brackets.platform === "win" ? 8 : 7);
// URL-decode the path ('%20' => ' ')
path = decodeURI(path);
var promise = DocumentManager.getDocumentForPath(path);
promise.done(function onDone(doc) {
DocumentManager.setCurrentDocument(doc);
Expand Down

0 comments on commit 943433f

Please sign in to comment.