/// <summary> /// Gets the link target. /// </summary> /// <param name="node"> /// The node. /// </param> /// <returns> /// The <see cref="string"/>. /// </returns> protected virtual string GetLinkTarget(SiteMapNode node) { string target = NavigationUtilities.GetLinkTarget(node); if (target.IsNullOrEmpty()) { target = "_self"; } return(target); }
/// <summary> /// Returns the "target" HTML attribute of the link of the given /// <paramref name="sitefinitySiteMapNode"/>. /// </summary> /// <param name="sitefinitySiteMapNode">The SiteMap node where the link resides.</param> /// <returns> /// The link target, or an empty string if <paramref name="sitefinitySiteMapNode"/> is null. /// </returns> public string GetLinkTarget(ISitefinitySiteMapNode sitefinitySiteMapNode) { return(NavigationUtilities.GetLinkTarget(sitefinitySiteMapNode)); }