Finbuckle.MultiTenant
Finbuckle.MultiTenant copied to clipboard
Using Finbuckle BasePathStrategy with a Blazor Server-side app doesn't work
Hello,
I managed to use Finbuckle using Host Strategy in a Blazor Server App .NET 6. And it works really well!
However, when changing to WithBasePathStrategy I get a "Sorry, there's nothing at this address." the default message when the route is not found.
Can you provide an example in how to implement the Base Path Strategy in Blazor?
hi @paburgos I'm glad to hear that the host strategy works, but the basepath strategy is a bummer. I honestly don't have enough experience with Blazor to be of much help. I believe Blazor has its own internal routing that happens and I don't think it runs the entire application pipeline on route changes -- this is something that would be a big benefit to the library so I will plan to look into it.
@AndrewTriesToCode thanks! looking forward to seeing this new feature in the library.
In order to achieve this, you need to host Blazor at a path that includes the tenant. For example:
endpoints.MapBlazorHub("{tenant}/_blazor");
Hello,
I managed to use Finbuckle using Host Strategy in a Blazor Server App .NET 6. And it works really well!
However, when changing to WithBasePathStrategy I get a "Sorry, there's nothing at this address." the default message when the route is not found.
Can you provide an example in how to implement the Base Path Strategy in Blazor?
Hi @paburgos , could you provide some working code of Finbuckle and Blazor Server with host strategy? TIA