SenseNet.Services.GoogleSitemapHandler.getPageUrl C# (CSharp) Метод

getPageUrl() публичный Метод

Returns actual URL of a Node using PortalContext.Current
public getPageUrl ( Node node, string siteUrl ) : string
node Node
siteUrl string
Результат string
        public string getPageUrl(Node node, string siteUrl)
        {
            string localPath = node.Path;
            string sitePath = PortalContext.Current.Site.Path;
            if (localPath.StartsWith(sitePath))
            {
                localPath = localPath.Remove(0, sitePath.Length);
            }
            return "http://" + siteUrl + localPath;
        }
GoogleSitemapHandler