// Composite's url to the page being rendered // page url, but without query string and PathInfo, this could work, but if there's some kind of // url routing, it's not a fact that it will work. public string CompositeRenderedUrl() { string retval = string.Empty; using (DataConnection dc = new DataConnection()) { Composite.Data.SitemapNavigator smn = new Composite.Data.SitemapNavigator(dc); retval = smn.CurrentPageNode.Url; } return retval; }
// Composite's url to the page being rendered // page url, but without query string and PathInfo, this could work, but if there's some kind of // url routing, it's not a fact that it will work. public string CompositeRenderedUrl() { string retval = string.Empty; using (DataConnection dc = new DataConnection()) { Composite.Data.SitemapNavigator smn = new Composite.Data.SitemapNavigator(dc); retval = smn.CurrentPageNode.Url; } return(retval); }