I have a situation in which I'd like to know whether the user is currently on their root site collection or not.
I tried the following:
var siteRelativeUrl = ctx.Web.ServerRelativeUrl; var isRoot = siteRelativeUrl.Equals("/");
But apparently this fails some times, so I guess you can have a none root site collection consisting of
I was wondering and hoping that CSOM had some way of checking this, or if any had some suggestions as of what to do?