If you need to quickly get the site collection path or the specific web path of a current SharePoint 2013 site using JavaScript, use the _spPageContextInfo JavaScript object variable and its properties. A possible scenario includes creating a link to a library that may exist in every site and subsite of a particular site collection, […]