I am trying to concat two strings using urlCombine method like this:
SP.Utilities.UrlBuilder.urlCombine(_spPageContextInfo.webAbsoluteUrl, AnotherUrl);
The AnotherUrl might contain a slash / and when it does, the result url will be like:
http://sitename/sites/myweb//anotherurl
So basically the urlCombine didn't work. Why is that? I still have duplicate urls.