Skip to content

Update Blazor <head> components #25705

@MackinnonBuck

Description

@MackinnonBuck

Summary

Through some experimentation, it was discovered that there is opportunity for improvement with the Blazor Head components (Title, Link, and Meta). This issue is for tracking the items that need to be addressed regarding these components.

Details

Following are the items that need to be addressed:

  • Change <Title> to render the ChildContent as the document title and remove the Value parameter. This is more consistent with the HTML <title> element.
  • Make <head> changes apply before page navigation events so they can be picked up properly by web analytics, etc.
  • Update tooling not to warn about usage Blazor Head components. The completion of Adding partial namespaces in Blazor's razor markup #22194 might be an acceptable solution, but we might want an additional fix that covers all use cases.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedPriority:2Work that is important, but not critical for the releaseUser StoryA single user-facing feature. Can be grouped under an epic.affected-mostThis issue impacts most of the customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureseverity-majorThis label is used by an internal tool

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions