Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 419774 - Incorrect encoding/decoding of file names
  • Loading branch information
squarti committed Feb 27, 2018
1 parent 4d983fc commit 9d16693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundles/org.eclipse.orion.client.ui/web/edit/setup.js
Expand Up @@ -1219,7 +1219,7 @@ objects.mixin(EditorViewer.prototype, {
inputManager.removeEventListener("InputChanged", this.loadComplete);
that.tabWidget.closeTab(metadata, false);
}.bind(this));
inputManager.setInput(newLocation || metadata.WorkspaceLocation || fileClient.fileServiceRootURL(metadata.Location));
inputManager.setInput(uriTemplate.expand({resource: newLocation || metadata.WorkspaceLocation || fileClient.fileServiceRootURL(metadata.Location)}));
} else {
that.tabWidget.closeTab(metadata, false);
}
Expand All @@ -1234,7 +1234,7 @@ objects.mixin(EditorViewer.prototype, {
inputManager.removeEventListener("InputChanged", this.loadComplete);
that.tabWidget.closeTab(metadata, false);
}.bind(this));
inputManager.setInput(item.result && item.result.Location || metadata.WorkspaceLocation || fileClient.fileServiceRootURL(selectedMetadata.Location));
inputManager.setInput(uriTemplate.expand({resource: item.result && item.result.Location || metadata.WorkspaceLocation || fileClient.fileServiceRootURL(selectedMetadata.Location)}));
} else if (that.tabWidget.editorTabs.hasOwnProperty(sourceLocation)) {
that.tabWidget.closeTab(metadata, false);
}
Expand Down

0 comments on commit 9d16693

Please sign in to comment.