From bbc93bfa559f2b5ce13288c9bd53af68625d6a08 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Mon, 4 Apr 2016 17:23:08 +0000
Subject: [PATCH] SSDM-3449 : Direct link to host

SVN: 36073
---
 .../eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
index e461f3940c9..287201b96a7 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
@@ -657,7 +657,10 @@ $.extend(DefaultProfile.prototype, {
 			var _this = this;
 			this.serverFacade.getDirectLinkURL(function(error, result) {
 				if(!error) {
-					_this.directLinkURL = result.data;
+					var hostName = window.location.hostname;
+					var directLinkURL = result.data;
+						directLinkURL = directLinkURL.replace("$URL", hostName);
+					_this.directLinkURL = directLinkURL;
 				}
 				callback();
 			});
-- 
GitLab