You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the SharePoint-address contains portnumbers (e.g. http://knlemosswebtest04:8081), the initialization of the variable "siteRoot" in the function "SPServicesContext" is done wrong:
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;
The text was updated successfully, but these errors were encountered:
LordPalpatine
changed the title
"siteRoot" initialized wrong in function "SPServiceContext
"siteRoot" initialized wrong in function "SPServiceContext"
Jan 5, 2018
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;
The text was updated successfully, but these errors were encountered: