= _metadataProvider.RouteDetailMapping.FirstOrDefault(vp =&gt; url.EndsWith(vp.Key)).Value;

    if (metadataValue is null)
    {
        metadataValue = new()
        {
            Title = "Default",
            Description = "Default"
        };
    }

    Title = metadataValue.Title;
    Description = metadataValue.Description;
}</pre>
<p>Subscribe to the <code>LocationChanged</code> event.</p>
<pre class="code" language="csharp">public MetadataTransferService(NavigationManager navigationManager, Metadat