When using the navigation bar to navigate, the corresponding MenuItem is set as "current".

We use custom CSS to indicate to the user which part of the application they're currently at (green underline, as seen in the images above). The user may also be redirected to a different part of the application when interacting with elements outside of the navigation bar. In that case, the corresponding MenuItem is not set as "current" (as shown in the image below).
How can this behaviour of setting a MenuItem as "current" be replicated when using other means (like HTML anchor element) to navigate to the same page?
Using the code you provided and configuring it in the module as follows works perfectly.
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddSingleton<IDynamicResourceLocalizer, MyDynamicResourceLocalizer>();
}
We can now login without a tenant to update and localize our text which will then display as expected for all tenants.
Thank you!
Hi liangshiwei, thank you for your suggestion! I will check if this solves our problem and report back sometime around the middle of next week.
When using Volo.LanguageManagement to update texts, the changes are not reflected when switching between tenants.
Example We want to change the text from "New Project" in the header to "hello"
Upon saving, the text was changed without any issues.
However, when logging in with a tenant, the header still displays "New Project", as the value appears unchanged in the language management module.
How can we use the language management module for tenant-independent localization?





