Under the diagram-viewer folder,the index.html is contain this code snippet:
var baseUrl = window.document.location.protocol + "//" + window.document.location.host + "/";
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?