Forum Discussion
Xiaoyuan Zhang
Jul 14, 2017Former Employee
What's the relationship between list url and site url
I need make CSOM call, when I new a context, I need the site url. But I only have list document url, such as
https://XXX.sharepoint.com/teams/AAA/Shared Documents/
Should I remove last "Shar...
sagar savaliya
Jul 16, 2017Copper Contributor
You can get site url by "_spPageContextInfo.webAbsoluteUrl" also. I think it would be easy for you. No need to make a CSOM call for that.
- Xiaoyuan ZhangJul 17, 2017Former EmployeeI don't have _spPageContextInfo. My code not based on SPO.