How is it possible to check in JS/jQuery if the user is on the root site of the root sitecollection in the webapplication? (Sharepoint 2010)
Thanks!
Example:
- http://www.mysite.com/Pages/Whatever.aspx -> ROOT WEB & ROOT SITECOLLECTION
- http://www.mysite.com/subsite/Pages/Test.aspx -> NOT ROOT WEB & ROOT SITECOLLECTION
- http://www.mysite.com/sites/Random/Pages/Awesome.aspx -> ROOT WEB & NOT ROOT SITECOLLECTION
- http://www.mysite.com/sites/Random/subsite/Pages/Awesome.aspx -> NOT ROOT WEB & NOT ROOT SITECOLLECTION