Get start page Url in EPiServer CMS 5 or later

October 03, 2010 EPiServer Snippet
PageData pagedata = Global.EPDataFactory.GetPage(new PageReference(EPiServer.Configuration.Settings.Instance.PageStartId));
EPiServer.UrlBuilder url = new EPiServer.UrlBuilder(pagedata.LinkURL);
EPiServer.Global.UrlRewriteProvider.ConvertToExternal(url, pagedata.PageLink, System.Text.UTF8Encoding.UTF8);

Related posts: