diff --git a/structr-ui/src/main/resources/structr/js/pages.js b/structr-ui/src/main/resources/structr/js/pages.js
index <HASH>..<HASH> 100644
--- a/structr-ui/src/main/resources/structr/js/pages.js
+++ b/structr-ui/src/main/resources/structr/js/pages.js
@@ -372,7 +372,7 @@ var _Pages = {
 			e.stopPropagation();
 			var self = $(this);
 			var link = $.trim(self.parent().children('b.name_').attr('title'));
-			var url = viewRootUrl + link + (LSWrapper.getItem(detailsObjectId + entity.id) ? '/' + LSWrapper.getItem(detailsObjectId + entity.id) : '');
+			var url = (entity.site && entity.site.hostname ? '//' + entity.site.hostname + (entity.site.port ? ':' + entity.site.port : '') + '/' : viewRootUrl) + link + (LSWrapper.getItem(detailsObjectId + entity.id) ? '/' + LSWrapper.getItem(detailsObjectId + entity.id) : '');
 			window.open(url);
 		});
Minor: Take site hostname (and optional port) into account when opening a preview page which is connected to a site.