- I want to get
ServerRelativeUrl
property on SharePoint page using JavaScript without loading SP.JS file. Is there any way to get this.
E.g. URL: https://example.domain.com/sites/sample/pages/home.aspx I want "/sites/sample" as my Server Relative Url
- If above does not works then can I get Server Relative Url using only JavaScript code i.e. without using SharePoint refrence, something like
window.location
Thanks in advance!