Blazor.HashRouting 1.1.0
Summary
Stable release for the 1.1.0 line of Blazor.HashRouting.
This release improves link behavior for hash-routed applications by canonicalizing internal anchor href values to /#/... URLs so browser-managed actions such as middle-click, right-click open in new tab, and copied links continue to resolve through the hash router.
This release also switches startup initialization to an explicit host extension. Applications should call InitializeHashRoutingAsync() after building the host and before running it.
Highlights
- Canonicalizes internal anchor
hrefvalues to hash-route URLs - Preserves opt-out behavior for links that use non-
_selftargets ordownload - Keeps browser-managed navigation aligned with intercepted left-click navigation
- Continues to support base-path deployments such as
/proxy/app/#/settings - Replaces hosted-service startup with explicit
InitializeHashRoutingAsync()host initialization
Relative link resolution
Relative anchor href values such as ./bar are resolved relative to the application base URI, not the current hash route.
For example, from /#/foo, an anchor with href="./bar" canonicalizes to /#/bar, not /#/foo/bar.
Installation
dotnet add package Blazor.HashRouting --version 1.1.0