Ejemplo n.º 1
0
        protected virtual string ResolveVirtualPath(ISiteMapNode node)
        {
            var url = node.UnresolvedUrl;

            if (!urlPath.IsAbsoluteUrl(url))
            {
                return(urlPath.MakeVirtualPathAppAbsolute(urlPath.Combine(urlPath.AppDomainAppVirtualPath, url)));
            }
            return(url);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets a boolean value that indicates this is an external URL by checking whether it
 /// looks like an absolute path.
 /// </summary>
 /// <returns></returns>
 public override bool HasAbsoluteUrl()
 {
     return(urlPath.IsAbsoluteUrl(this.url));
 }