"siteRoot" initialized wrong in function "SPServiceContext"
LordPalpatine opened this issue · comments
If the SharePoint-address contains portnumbers (e.g. http://knlemosswebtest04:8081), the initialization of the variable "siteRoot" in the function "SPServicesContext" is done wrong:
var siteRoot = location.protocol + "//" + location.host + (location.port !== "" ? location.port : "");
location.host is already delivering the hostname + port. In this case the port will be addes twice:
The correct way should be: var siteRoot = location.protocol + "//" + location.host;