Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to initialise multitenancy to the Blazor App #16829

Closed
LeonardCalhoun2024 opened this issue Oct 4, 2024 · 4 comments · Fixed by #16835
Closed

Unable to initialise multitenancy to the Blazor App #16829

LeonardCalhoun2024 opened this issue Oct 4, 2024 · 4 comments · Fixed by #16835
Labels

Comments

@LeonardCalhoun2024
Copy link

LeonardCalhoun2024 commented Oct 4, 2024

Describe the bug

Orchard Core version

Contentmanagement - version 2.0.2

Following the guide - https://docs.orchardcore.net/en/latest/guides/create-blazor-cms/#__tabbed_4_2

To Reproduce

Steps to reproduce the behaviour:
I followed the guide - "Create a Decoupled CMS site with a .NET Blazor Application (Server Side)

I get to the stage "Add multitenancy to the Blazor App" and create the FirstTenant example, which is created but when i try to set it up it takes me straight to "https://localhost:XXXX/tenant01?token=....." and skips the "Setup" page therefore none of the database tables are created

Expected behaviour

I would expect it to follow the guide and take me to the Setup page (unless I am misunderstanding how Multitenancy works)

Logs and screenshots

Not too sure what logs would be applicable but can provide if needed

Copy link
Contributor

github-actions bot commented Oct 4, 2024

Thank you for submitting your first issue, awesome! 🚀 We're thrilled to receive your input. If you haven't completed the template yet, please take a moment to do so. This ensures that we fully understand your feature request or bug report. On what happens next, see the docs.

If you like Orchard Core, please star our repo and join our community channels.

@hishamco
Copy link
Member

hishamco commented Oct 4, 2024

@psijkof works on something similar if I remember

@psijkof
Copy link
Contributor

psijkof commented Oct 4, 2024

Yes, thank you for reminding me to highlight an important issue.

Orchard Core always listens to / (also a tenant root, e.g. /firsttenant/).

Therefore, to avoid conflicts (between oc routing and blazor routing) and get expected orchard responses, change your home.razor page, to use

@page "/home" for example, and try again the sample. (Note, that you probably also want to change your nav menu to use /home instead of /)

HTH

@LeonardCalhoun2024
Copy link
Author

@psijkof Thank you, that has helped resolved the issue I was having . Very much appreciate the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants