Skip to content

Commit

Permalink
Make LinkMenuItemPart use LocalNav.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Aug 20, 2024
1 parent 2bd9952 commit 3bdf6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lombiq.BaseTheme/Services/MainMenuNavigationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private async Task AddAsync(NavigationBuilder builder, ContentItem menuItem)

if (menuItem.As<LinkMenuItemPart>() is { } linkMenuItemPart)
{
builder.Add(text, menu => menu.Url(linkMenuItemPart.Url));
builder.Add(text, menu => menu.Url(linkMenuItemPart.Url).LocalNav());
}
else if (menuItem.As<ContentMenuItemPart>() is { } contentMenuItemPart)
{
Expand Down

0 comments on commit 3bdf6cc

Please sign in to comment.