aProvider metadataProvider)
{
    ...
    _navigationManager.LocationChanged += UpdateMetadata;
}

private void UpdateMetadata(object sender, LocationChangedEventArgs e)
{
    UpdateMetadata(e.Location);
}

public void Dispose()
{
    _navigationManager.LocationChanged -= UpdateMetadata;
}</pre>
<p>Whenever users navigate to a new page, the <code>LocationChanged</code> event is fired and the metadata is refreshed. The <code>LocationChanged</code> event will not fire when the user enters the first page becau