Finbuckle.MultiTenant icon indicating copy to clipboard operation
Finbuckle.MultiTenant copied to clipboard

Using Finbuckle BasePathStrategy with a Blazor Server-side app doesn't work

Open paburgos opened this issue 3 years ago • 4 comments

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?

paburgos avatar Dec 14 '21 22:12 paburgos

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 avatar Dec 15 '21 02:12 AndrewTriesToCode

@AndrewTriesToCode thanks! looking forward to seeing this new feature in the library.

paburgos avatar Dec 15 '21 14:12 paburgos

In order to achieve this, you need to host Blazor at a path that includes the tenant. For example:

endpoints.MapBlazorHub("{tenant}/_blazor");

Bouke avatar Oct 10 '22 14:10 Bouke

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

gocampo avatar Dec 25 '23 18:12 gocampo