Skip to content

Release 1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Mar 14:16
1.1.0
4568cee

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 href values to hash-route URLs
  • Preserves opt-out behavior for links that use non-_self targets or download
  • 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