We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e302db3 commit 534c3d6Copy full SHA for 534c3d6
src/BootstrapBlazor/Components/Layout/Layout.razor.cs
@@ -491,8 +491,8 @@ protected override async Task OnInitializedAsync()
491
// wasm 模式下 开启权限必须提供 AdditionalAssemblies 参数
492
AdditionalAssemblies ??= [Assembly.GetEntryAssembly()!];
493
494
- var url = Navigation.ToBaseRelativePath(Navigation.Uri);
495
- var context = RouteTableFactory.Create(AdditionalAssemblies, url);
+ var uri= Navigation.ToAbsoluteUri(Navigation.Uri);
+ var context = RouteTableFactory.Create(AdditionalAssemblies, uri.LocalPath);
496
if (context.Handler != null)
497
{
498
IsAuthenticated = await context.Handler.IsAuthorizedAsync(ServiceProvider, AuthenticationStateTask, Resource);
0 commit comments