Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: BlazorApp下路由到Server页面时提示Not found #2174

Open
kx500 opened this issue Sep 28, 2024 · 3 comments
Open

[Bug Report]: BlazorApp下路由到Server页面时提示Not found #2174

kx500 opened this issue Sep 28, 2024 · 3 comments

Comments

@kx500
Copy link

kx500 commented Sep 28, 2024

Masa.Blazor version

1.7.4

Describe the bug

能够正常路由到Server页面,但是过1秒钟左右会提示Not found,路由到WebAssembly页面不会出现问题。
为了测试这个问题处在哪里我专门创建了一个新的BlazorApp项目测试,发现使用Masa.Blazor后就会出现上面的问题。

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code

No response

.NET version

8.0

What browsers are you seeing the problem on?

Microsoft Edge

Additional context

No response

@kx500
Copy link
Author

kx500 commented Sep 28, 2024

发现是使用了InteractiveAuto导致的,新项目自带的是RenderModeForPage也就是访问Account相关路由时使用null
//
private IComponentRenderMode? RenderModeForPage => HttpContext.Request.Path.StartsWithSegments("/Account") ? null : InteractiveAuto;

@capdiem
Copy link
Contributor

capdiem commented Sep 28, 2024

@kx500 请提供最小可复现的项目。

@kx500
Copy link
Author

kx500 commented Sep 29, 2024

@kx500 请提供最小可复现的项目。

我找到问题了,就是因为渲染模式不能使用空interactive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants