Blazor Title

Kuler Master 246 Reputation points
2024-04-19T09:30:14.7833333+00:00

Hello,

I have a Blazor 8.0 project that has been giving me trouble when it comes to Title.

I have a <PageTitle> tag on every page but it remains the Home no matter on which page I am redirected.

Is there a solution for this problem?

Thank you

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,395 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,531 Reputation points
    2024-04-19T16:27:53.5266667+00:00

    <PageTitle> is a simple component. when rendered it just uses jsinterop to set the document title:

    document.title = 'My Page Title';
    

    perhaps your localizer is always returning the same value.