Skip to content

Commit b704e83

Browse files
chore(menu): update UriHelper to NavigationManager for preview 9
1 parent 2546cbd commit b704e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/menu/templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ You can use the template to render arbitrary content according to your applicati
104104
105105
````CSHTML
106106
@using Telerik.Blazor.Components.Menu
107-
@inject IUriHelper urlHelper
107+
@inject NavigationManager navigationManager
108108
109109
<TelerikMenu Data="@MenuItems" OnClick="@((MenuItem item) => OnClick(item))">
110110
<ItemTemplate Context="item">
@@ -183,7 +183,7 @@ You can use the template to render arbitrary content according to your applicati
183183
184184
private bool CompareCurrentPageUrl(string urlToCopmare)
185185
{
186-
return urlHelper.GetAbsoluteUri().Substring(urlHelper.GetBaseUri().Length - 1).Equals(urlToCopmare);
186+
return navigationManager.GetAbsoluteUri().Substring(navigationManager.GetBaseUri().Length - 1).Equals(urlToCopmare);
187187
}
188188
189189
private bool IsInternalPage(string url)

0 commit comments

Comments
 (0)