Skip to content

Commit cca7d09

Browse files
committed
Ensure we hadnle CrossLinkNavigationItem when building the sitemap by ignoring them
1 parent 4f9ca60 commit cca7d09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tooling/docs-assembler/Building/SitemapBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ private static IReadOnlyCollection<INavigationItem> GetNavigationItems(IReadOnly
7676
result.AddRange(GetNavigationItems(group.NavigationItems));
7777
result.Add(group);
7878
break;
79+
case CrossLinkNavigationItem:
80+
continue; // we do not emit cross links in the sitemap
7981
default:
8082
throw new Exception($"Unhandled navigation item type: {item.GetType()}");
8183
}

0 commit comments

Comments
 (0)