diff --git a/src/docs/guides/create-blazor-cms/README.md b/src/docs/guides/create-blazor-cms/README.md index 51dce873cb8..35e40e3280e 100644 --- a/src/docs/guides/create-blazor-cms/README.md +++ b/src/docs/guides/create-blazor-cms/README.md @@ -730,6 +730,50 @@ Run the application. Click on the `Orchard Core` link on the Left Nav will load # Add multitenancy to the Blazor App One of the key features of Orchard Core is its multi-tenancy support. In this section, we will add multi-tenancy support to our Blazor application. +!!! note + Orchard Core listens for requests, also on '/' (e.g. when a site needs to be configured). So having our Blazor app listening to '/' as well can pose a problem. + A solution is to replace `@page "/"` with `@page "/home"` in our `home.razor` file (and update our `navmenu.razor`), so Blazor (the app) will listen to `/home` while Orchard Core is not hindered by that. + +=== "Home.razor" + + ```razor + @page "/home" + + Home + +

Hello, Orchard!

+ + Welcome to your new Blazor CMS app. + ``` + +=== "NavMenu.razor" + + ```razor + + + + + + ``` + ## Enable the tenant feature. In orchard core admin, go to `Configuration` -> `Features` and enable the `Tenants` feature. @@ -985,4 +1029,4 @@ To further verify that there is now an active SignalR connection with the server In this guide, we have seen how to create a Blazor application, in a Razor class library, and serve it from an Orchard Core CMS application. We have seen how to add multi-tenancy support to the Blazor application, and how to make the Blazor application interactive. -The source code for this guide is available at [github.com/OrchardCMS/OrchardCore.Samples](https://github.com/OrchardCMS/OrchardCore.Samples) \ No newline at end of file +The source code for this guide is available at [github.com/OrchardCMS/OrchardCore.Samples](https://github.com/OrchardCMS/OrchardCore.Samples)