SenseNet.Messaging.NotificationHandler.GetContentUrl C# (CSharp) Method

GetContentUrl() private static method

private static GetContentUrl ( string sitePath, string siteUrl, string contentPath ) : string
sitePath string
siteUrl string
contentPath string
return string
        private static string GetContentUrl(string sitePath, string siteUrl, string contentPath)
        {
            if (contentPath == sitePath)
                return siteUrl;
            if (!contentPath.StartsWith(sitePath))
                return contentPath;
            if (contentPath[sitePath.Length] != '/')
                return contentPath;
            return contentPath.Replace(sitePath, siteUrl);
        }