From 3efff4acb238ecbd48522e6d3f54f8e8483eafb7 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Wed, 29 Mar 2017 08:05:28 +0000
Subject: [PATCH] SSDM-4966 : Resource load bugfix

SVN: 37995
---
 .../java/ch/systemsx/cisd/openbis/public/resources/config.js  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/config.js b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/config.js
index fbeb2e1c5c0..c763276396e 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/config.js
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/config.js
@@ -8,8 +8,8 @@ var require = (function() {
 		for(var sIdx = 0; sIdx < scripts.length; sIdx++) {
 			var src = scripts[sIdx].src;
 			var substringEnd = -1;
-			if((substringEnd = src.indexOf("/api/v3/config.js")) > -1) {
-				baseUrl = src.substring(0, substringEnd);
+			if((substringEnd = src.indexOf("/resources/config.js")) > -1) {
+				baseUrl = src.substring(0, substringEnd+"/resources".length);
 			}
 		}
 		return baseUrl;
-- 
GitLab