summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMark Macdonald2012-04-13 17:34:44 (EDT)
committer Malgorzata Janczarska2012-04-17 08:55:20 (EDT)
commit554cd4be13a99aee1b88ec19dd9394c89b9c0ba8 (patch)
treedf0541780ae8b1c2b91b1dd2697a58e55011485a
parent0d509f4d91ade801ca02040b17b53505b1f26470 (diff)
downloadorg.eclipse.orion.client-554cd4be13a99aee1b88ec19dd9394c89b9c0ba8.zip
org.eclipse.orion.client-554cd4be13a99aee1b88ec19dd9394c89b9c0ba8.tar.gz
org.eclipse.orion.client-554cd4be13a99aee1b88ec19dd9394c89b9c0ba8.tar.bz2
Bug 376791 - Bad directory listing after using 'View on site' on a folder
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/siteCommands.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/siteCommands.js b/bundles/org.eclipse.orion.client.core/web/orion/siteCommands.js
index 21827e2..a2b35e2 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/siteCommands.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/siteCommands.js
@@ -92,7 +92,7 @@ define(['require', 'orion/commands', 'orion/siteUtils'],
deferred.then(function(site) {
// At this point the site is started
var a = document.createElement("a");
- a.href = site.HostingStatus.URL + virtualPath;
+ a.href = site.HostingStatus.URL + virtualPath + (item.Directory ? "/" : "");
var url = a.href;
if (viewOnCallback) {
viewOnCallback(url, site);