Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"siteRoot" initialized wrong in function "SPServiceContext" #67

Open
LordPalpatine opened this issue Jan 5, 2018 · 0 comments
Open

Comments

@LordPalpatine
Copy link

LordPalpatine commented 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:
spservice_1

The correct way should be: var siteRoot = location.protocol + "//" + location.host;

@LordPalpatine LordPalpatine changed the title "siteRoot" initialized wrong in function "SPServiceContext "siteRoot" initialized wrong in function "SPServiceContext" Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant