aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Macdonald2012-04-13 17:34:44 (EDT)
committerMark Macdonald2012-04-13 17:37:41 (EDT)
commit8999bcc29dd7e76b1f253a9f6726ead56e7aa32a (patch)
tree3925ebd64bf244d2990328b9b96626a7f2ba820f
parentceefd00048773866646011b424b7b094bfa0cd72 (diff)
downloadorg.eclipse.orion.client-8999bcc29dd7e76b1f253a9f6726ead56e7aa32a.zip
org.eclipse.orion.client-8999bcc29dd7e76b1f253a9f6726ead56e7aa32a.tar.gz
org.eclipse.orion.client-8999bcc29dd7e76b1f253a9f6726ead56e7aa32a.tar.bz2
Bug 376791 - Bad directory listing after using 'View on site' on a folderv20120413-2137
-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);