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

MapBlazorHub #2

Open
gertcoet opened this issue Feb 5, 2022 · 3 comments
Open

MapBlazorHub #2

gertcoet opened this issue Feb 5, 2022 · 3 comments

Comments

@gertcoet
Copy link

gertcoet commented Feb 5, 2022

hi, can you tell me why you are doing this endpoints.MapBlazorHub("/Blazor/_blazor"); and not just endpoints.MapBlazorHub("/Blazor"); Why does the last version not work?

392e3ed

@kinetiq
Copy link
Owner

kinetiq commented Feb 8, 2022

I am not 100% sure it has to be that way - but it works. :) This ticket may contain some hints: dotnet/aspnetcore#38545

I also found some relevant discussion here: https://mikaelkoskinen.net/post/combining-razor-blazor-pages-single-asp-net-core-3-application

@gertcoet
Copy link
Author

gertcoet commented Feb 9, 2022

Thank you :)

@gertcoet gertcoet closed this as completed Feb 9, 2022
@kinetiq
Copy link
Owner

kinetiq commented Feb 10, 2022

@gertcoet I looked into this a little deeper, because I noticed I was getting console messages like this:

image

So I thought, let's try your suggestion above. In my case, this results in my pages not being found. Not sure what is happening behind the scenes, but I suspect it's something routing-related. I get blank white screens, it seems _Host is generating its normal html wrapper but there's no content to plug in. No errors. No chatter about websockets being connected.

I would not mind knowing more about this if you happen to understand it. It seems I am landing back on my initial position though: endpoints.MapBlazorHub("/Blazor/_blazor") just seems to work.

@kinetiq kinetiq reopened this Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants