Skip to content

Blazor: PreRender WASM: PageTitle/HeadContent not updated on publish #35363

@srpeirce

Description

@srpeirce

Describe the bug

.Net 6 Preview 7
PageTitle and Head content does not update when navigating between pages after Publish.

Note: It works as expected when developing (e.g. dotnet run --project .\Server\).

This is running WebAssembly PreRendering.

To Reproduce

Repo to recreate
https://github.com/srpeirce/blazor-pagetitle-bug-net6-7

dotnet publish -c Release
Server\bin\Release\net6.0\publish\HeadFail.Server.exe

Open
image

❌ Click Counter - Doesn't Update Page title
image

Additional:
Refreshing page, the title is updated.
image

Further technical details

.NET SDK (reflecting any global.json):
 Version:   6.0.100-preview.7.21379.14
 Commit:    22d70b47bc

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19043
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.100-preview.7.21379.14\

Host (useful for support):
  Version: 6.0.0-preview.7.21377.19
  Commit:  91ba01788d
  

Metadata

Metadata

Assignees

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