Get tenant routes to filter from SPA fallback #15877
Replies: 12 comments
-
@jtkech Can you take a look? Maybe we need to add some functional tests that will try to access these from the Demo module. |
Beta Was this translation helpful? Give feedback.
-
Okay, i will take a look. I don't know well After a quick look at the above links, i saw static file middlewares which use physical files providers. So, i'm afraid that it would need more adaptations because our modules / themes embed their static files in their assemblies and there are served through custom file providers. I remember we did a recent change allowing to add |
Beta Was this translation helpful? Give feedback.
-
My colleague will upload a reproduction here (branch blazor-conference) around half of the hour.
It was me. But we moved to Blazor due to Ooui.Forms lack of necessary features. |
Beta Was this translation helpful? Give feedback.
-
Sorry, Blazor, I read Razor Pages ;) |
Beta Was this translation helpful? Give feedback.
-
I've updated the link |
Beta Was this translation helpful? Give feedback.
-
@jtkech, have you tried my reproduction? |
Beta Was this translation helpful? Give feedback.
-
@xperiandri sorry not yet, i will do it soon. |
Beta Was this translation helpful? Give feedback.
-
Don';t spend too much time on this, Blazor is super not stable, so I don't want any dependency on it in OC. It's fine to know if it works or not, and if so how to make it work, but we should not try to support it yet. You can already create a side project that would use Blazor to query content from OC, like their Server/Client sample. |
Beta Was this translation helpful? Give feedback.
-
Okay, no problem, i just did little tests.
So, a quick workaround, which could give you some ideas and which seems to work, is to do something like this in your theme startup.
Doing this i got the same SPA error on the home page (meaning the spa middleware run as before) but i could go e.g to |
Beta Was this translation helpful? Give feedback.
-
I asked around and it seems that mixing Blazor and an MVC app doesn't work, so it would not work with Orchard either. The current samples expose two different apps for this. Let's follow what they have to say on the issue you created in the blazor repos. |
Beta Was this translation helpful? Give feedback.
-
@xperiandri have you tried my workaround to filter routes from SPA fallback? |
Beta Was this translation helpful? Give feedback.
-
Yes, it works. Thanks. |
Beta Was this translation helpful? Give feedback.
-
We are trying to run Blazor from Orchard Core theme.
It launches but
UseBlazor
middleware handles all requests and does not allow to access admin or tenants:https://github.com/aspnet/Blazor/blob/39d2b90f03b037cf4601a056b37ab55fad9daab6/src/Microsoft.AspNetCore.Blazor.Server/Builder/BlazorApplicationBuilderExtensions.cs#L96
https://github.com/aspnet/Blazor/blob/39d2b90f03b037cf4601a056b37ab55fad9daab6/src/Microsoft.AspNetCore.Blazor.Server/Builder/BlazorApplicationBuilderExtensions.cs#L158
How to get a list of tenant routes, theme route and admin route to filter them from SPA fallback?
Beta Was this translation helpful? Give feedback.
All reactions