Telerik.Web.Mvc.SiteMapHandler.GetUrl C# (CSharp) Method

GetUrl() private method

private GetUrl ( INavigatable node, System.Web.HttpContextBase httpContext, string applicationRoot ) : string
node INavigatable
httpContext System.Web.HttpContextBase
applicationRoot string
return string
        private string GetUrl(INavigatable node, HttpContextBase httpContext, string applicationRoot)
        {
            string url = urlGenerator.Generate(httpContext.RequestContext(), node);

            if (!string.IsNullOrEmpty(url))
            {
                if (!url.StartsWith("/", StringComparison.Ordinal))
                {
                    url = "/" + url;
                }

                url = applicationRoot + url;
            }

            return url;
        }