-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #322, using custom URL resolver throws "multiple nodes with sam…
…e URL" exception.
- Loading branch information
1 parent
bdbd74b
commit bc43bf9
Showing
4 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/MvcSiteMapProvider/MvcSiteMapProvider/ISiteMapNodeExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using MvcSiteMapProvider.Web.UrlResolver; | ||
|
||
namespace MvcSiteMapProvider | ||
{ | ||
/// <summary> | ||
/// Contains extension logic for the ISiteMapNode interface that is not user | ||
/// overridable. | ||
/// </summary> | ||
public static class ISiteMapNodeExtensions | ||
{ | ||
public static bool UsesDefaultUrlResolver(this ISiteMapNode node) | ||
{ | ||
return string.IsNullOrEmpty(node.UrlResolver) || | ||
typeof(SiteMapNodeUrlResolver).Equals(Type.GetType(node.UrlResolver, false)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters