fix: Blazor 站点首页防止重复添加 PathBase

This commit is contained in:
Argo Zhang 2020-02-12 22:53:27 +08:00
parent 5fbb942a26
commit 6321500dd7
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ namespace Bootstrap.Admin.Pages.Components
RequestUrl = new UriBuilder(NavigationManager.Uri).Path;
Model = new NavigatorBarModel(UserName, RequestUrl.ToMvcMenuUrl());
DisplayName = Model.DisplayName;
HomeUrl = NavigationManager.ToBlazorLink(HomeUrl);
if (HomeUrl.StartsWith("/")) HomeUrl = NavigationManager.ToBlazorLink(HomeUrl);
}
}