For the root page of a Website, the obsolete Page.Url gives the full URL (http/https + domain + path) where as Page.GetUrlToPage only returns the part path (omitting http/https + domain).
How do I get the full URL for root pages with Page.GetUrlToPage? Or is this a bug?
If you are on the same website as the one you are creating a link to the link will be relative, if the page is on another website than the current one you will get a full url with schema and domain.