Skip to content

Page components from a Razor Class Library redirected to the NotFound page. #63987

@wendellestradairely

Description

@wendellestradairely

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When navigating to routes provided by a Razor Class Library (RCL), the page initially loads correctly. However, after a few seconds, it automatically redirects to the NotFound page.

Details

Render mode: InteractiveAuto
Interactivity location: Global
Blazor type: Web App (Server + WebAssembly)

Issue scope: Only occurs for routes defined in a Razor Class Library. Routes in the main app work as expected.

Expected Behavior

The RCL route should remain stable and interactive without redirecting to the NotFound page.

Steps To Reproduce

  1. Create a Razor Class Library (RCL) that defines one or more routable components (e.g., @page "/test").
  2. Reference the RCL from the main Blazor Web App.
  3. Configure the app to use InteractiveAuto render mode with Global interactivity.
  4. Run the app and navigate to the RCL route (e.g., /test).

Observe that:

  • The page loads correctly at first.
  • After a few seconds, it redirects to the NotFound page automatically.

Exceptions (if any)

No response

.NET Version

.NET 10 rc1

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions