-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Blazor WASM ignores the Base Href when trying to fetch hot-reload script #39554
Comments
Thanks for contacting us. We're moving this issue to the |
I have the same problem. Blazor hosted which have Blazor server pages on root Why it cant be fixed but it have to wait for .NET 7 ? |
A workaround is to use dotnet run with --pathbase= as indicated in MSDN application. I also tried disabling hotReloadEnabled but it didn't help. Failure to load hotload should be allowed to during development instead of halting. Update: Having hot reload option set to false bypasses. It wasn't obvious until this is set and build had to be cleaned first.
I used with IIS Express with
|
Hey @keenam, Thanks for the extra info. Where did you add the hot reload false parameter? Is that in the launch.json configuration for the debug config? |
It's in the |
We think this is fixed in the upcoming .NET 7 preview 7 release. Can someone please give it a try when it ships and let us know if this is still an issue? Thanks! |
Closing as we believe this is addressed. |
Is there an existing issue for this?
Describe the bug
The Hot-Reload script ignores the base href when being fetched resulting in a 404 if the base href is set to anything other than
/
.Expected Behavior
Debugging with a base href set works as it did in .NET 5.0.
Steps To Reproduce
See https://github.com/gfs/BlazorWasmHotReloadFailure for an example project that demonstrates this behavior.
Exceptions (if any)
No response
.NET Version
6.0.101
Anything else?
Visual Studio Version 17.0.4
The text was updated successfully, but these errors were encountered: