From 6321500dd7b105e01726bbb3ebebce910fd2b97c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 12 Feb 2020 22:53:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Blazor=20=E7=AB=99=E7=82=B9=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E9=98=B2=E6=AD=A2=E9=87=8D=E5=A4=8D=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=20PathBase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Pages/Components/DefaultLayoutComponentBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/Bootstrap.Admin/Pages/Components/DefaultLayoutComponentBase.cs b/src/admin/Bootstrap.Admin/Pages/Components/DefaultLayoutComponentBase.cs index 4625a2ee..b53b7c84 100644 --- a/src/admin/Bootstrap.Admin/Pages/Components/DefaultLayoutComponentBase.cs +++ b/src/admin/Bootstrap.Admin/Pages/Components/DefaultLayoutComponentBase.cs @@ -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); } }