From 40c73f9e70c9753da4f0e72bf16c69fbd46a7c1a Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Tue, 7 Apr 2020 05:57:15 -0500 Subject: [PATCH] Fix Blazor culture code example (#17647) --- aspnetcore/blazor/globalization-localization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/blazor/globalization-localization.md b/aspnetcore/blazor/globalization-localization.md index 7440a93532..fa658fa261 100644 --- a/aspnetcore/blazor/globalization-localization.md +++ b/aspnetcore/blazor/globalization-localization.md @@ -5,7 +5,7 @@ description: Learn how to make Razor components accessible to users in multiple monikerRange: '>= aspnetcore-3.1' ms.author: riande ms.custom: mvc -ms.date: 04/02/2020 +ms.date: 04/07/2020 no-loc: [Blazor, SignalR] uid: blazor/globalization-localization --- @@ -154,7 +154,7 @@ The following component shows an example of how to perform the initial redirecti private void OnSelected(ChangeEventArgs e) { var culture = (string)e.Value; - var uri = new Uri(NavigationManager.Uri()) + var uri = new Uri(NavigationManager.Uri) .GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped); var query = $"?culture={Uri.EscapeDataString(culture)}&" + $"redirectUri={Uri.EscapeDataString(uri)}";