Skip to content

Blazor - Multiple pages support #21574

@vd3d

Description

@vd3d

Hi,

Currently Blazor is made for SPA, of course we can split it with area but we can only have one
_Host.cshtml page for the entire application.

In my situation, each area is really different, and I need to include different CSS libs, JS libs etc...

So, I have try to play with MapFallbackToAreaPage/MapFallbackToPage etc... but I can't find any solution that really work !

What I wish is the ability to have a 'root' cshtml page per area, but not sure it is possible today ?

BTW, I have a post on stackoverflow about this:
https://stackoverflow.com/questions/61490973/blazor-multiples-area-custom-hostm-cshtml?noredirect=1#comment108802743_61490973

Is there a solution (and an example somewhere) ?

Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions