Skip to content

Commit e5d1be7

Browse files
authored
Fix navigation dropdown (#2241)
1 parent b0c4de2 commit e5d1be7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Elastic.Documentation.Navigation/Isolated/Node/TableOfContentsNavigation.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ INavigationHomeProvider homeProvider
8484
public string ParentPath { get; }
8585

8686
/// <inheritdoc cref="INodeNavigationItem{TIndex,TChildNavigation}.Id" />
87-
public string Id { get; }
87+
public string Id { get; private set; }
8888

8989
/// <inheritdoc />
9090
public ILeafNavigationItem<TModel> Index { get; private set; }
@@ -103,6 +103,7 @@ internal void SetNavigationItems(IReadOnlyCollection<INavigationItem> navigation
103103
{
104104
var indexNavigation = navigationItems.QueryIndex<TModel>(this, $"{ParentPath}/index.md", out navigationItems);
105105
Index = indexNavigation;
106+
Id = ShortId.Create(indexNavigation.Url);
106107
NavigationItems = navigationItems;
107108
}
108109
}

0 commit comments

Comments
 (0)