C#C
C#2y ago
Apache

AspNetCore `net8.0` - Blazor {*CatchAll} route overrides MVC AdminController route

I'm using a Blazor8 with OrchardCore as a de-coupled CMS. I want /admin* to be routed by Orchard, and the rest to be routed by Blazor.

Using this as a basic working example: https://github.com/ApacheTech/BlazOrchard

If I have a page with @page "/{*Slug}";, I want to give priority to /admin to run through the MVC Area controller. It seems that Blazor strips all power away from MVC to route itself. I want Blazor to be the fallback.
GitHub
This repo gives an example of how to set up a solution to run an OrchardCore Decoupled CMS, with a Blazor Web App front-end. - ApacheTech/BlazOrchard
Was this page helpful?