diff --git a/UI/WebServerResources/generic.js b/UI/WebServerResources/generic.js index 010436986..28e30419a 100644 --- a/UI/WebServerResources/generic.js +++ b/UI/WebServerResources/generic.js @@ -903,8 +903,11 @@ function onContactAdd(node) selectorUrl = ("?selectorId=" + node.parentNode.parentNode.getAttribute("id")); - urlstr = (ApplicationBaseURL + "/../../" + UserLogin + "/Contacts/" - + contactSelectorAction + selectorUrl); + urlstr = ApplicationBaseURL; + if (urlstr[urlstr.length-1] != '/') + urlstr += '/'; + urlstr += ("../../" + UserLogin + "/Contacts/" + + contactSelectorAction + selectorUrl); log (urlstr); var w = window.open(urlstr, "Addressbook", "width=640,height=400,resizable=1,scrollbars=1,toolbar=0,"