I'm working on an app for SharePoint (namely SharePoint Online) that needs to get the public website URL.
In SharePoint online, the public website site has two URLs - the one you give it (typically bound to http) & another one (tenant-public.sharepoint.com), bound to HTTPS (also where you login & manage the site).
Is the public URL stored anywhere on the Web object? I can't seem to find it anywhere. EncodedAbsUrl & similar properties all end up pointing to https://<tenantname>-public.sharepoint.com/ rather than the public name. Is this anywhere to be found?