Skip to content

The PageTitle component doesn't update the title when navigating directly to a page #36967

@chrissainty

Description

@chrissainty

Describe the bug

When applying the PageTitle component to pages, the title is only updated when navigating from another page in the application, not when loading a page directly.

To Reproduce

Using the standard Blazor WebAssembly template, load the application as normal and navigate from the Index page to the Counter page. Observe that the title is updated from the application name to "Counter" in the browser tab.

Now open a new tab and load the counter page directly. Observe that the title in the browser tab is not updated to "Counter" but remains the name of the application.

Further technical details

  • ASP.NET Core version: .NET 6 RC 1

Metadata

Metadata

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions