Skip to content

Commit 3166df5

Browse files
authored
Adaptation of SideMenu to routes using the newest methods (#62)
1 parent b108679 commit 3166df5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/layout/src/SiderMenu/BaseMenu.razor

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@
3636
}
3737
else if (!menuItem.HideInMenu)
3838
{
39-
<MenuItem Key="@menuItem.Key">
40-
<MenuLink href="@menuItem.Path" Match="@menuItem.Match">
41-
@title(menuItem)
42-
</MenuLink>
43-
</MenuItem>
39+
<MenuItem Key="@menuItem.Key" RouterLink="@menuItem.Path" RouterMatch="@menuItem.Match">@title(menuItem)</MenuItem>
4440
}
4541
}
4642
}

0 commit comments

Comments
 (0)