AnsweredAssumed Answered

There is a question when intergrate with diagram-viewer.

Question asked by jin1 on Jun 27, 2016
Latest reply on Jun 27, 2016 by jbarrez
Under the diagram-viewer folder,the index.html is contain this code snippet:

var baseUrl = window.document.location.protocol + "//" + + "/";
var shortenedUrl = window.document.location.href.replace(baseUrl, "");
baseUrl = baseUrl + shortenedUrl.substring(0, shortenedUrl.indexOf("/"));

which is use to append the baseUrl String.
But, when we deploy the webapp to the ROOT contextPath(such as "/"),the
shortenedUrl.substring(0, shortenedUrl.indexOf("/"));
can not get the contextPath,and make the wrong append operate.
How can we fix this?