Skip to content

无效的404路由只显示Main,不显示菜单栏和标题栏 #3991

@WeiJunFenYou

Description

@WeiJunFenYou

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

image

点击进入这个地址,就会只显示Main,而不渲染菜单栏和标题栏。直接从浏览器输入无效的URL也是如此。

image

在2年前的老版本中,就没有这个问题。即便URL无效,也会正确的渲染它们。

页面的代码如下。
<NotFound> <LayoutView Layout="@typeof(DefaultLayout)"> <p>Sorry, there's nothing at this address.</p> </LayoutView> </NotFound>
我怀疑这是个BUG,但我没有证据。有可能是因为我对组件掌握不够,不过这个问题困扰了我许久,还望开发者解惑。

Expected Behavior

No response

Steps To Reproduce

Exceptions (if any)

No response

.NET Version

.NET 8

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions