File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments