Skip to content

Commit 40c73f9

Browse files
authored
Fix Blazor culture code example (#17647)
1 parent 50de228 commit 40c73f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aspnetcore/blazor/globalization-localization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to make Razor components accessible to users in multiple
55
monikerRange: '>= aspnetcore-3.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 04/02/2020
8+
ms.date: 04/07/2020
99
no-loc: [Blazor, SignalR]
1010
uid: blazor/globalization-localization
1111
---
@@ -154,7 +154,7 @@ The following component shows an example of how to perform the initial redirecti
154154
private void OnSelected(ChangeEventArgs e)
155155
{
156156
var culture = (string)e.Value;
157-
var uri = new Uri(NavigationManager.Uri())
157+
var uri = new Uri(NavigationManager.Uri)
158158
.GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped);
159159
var query = $"?culture={Uri.EscapeDataString(culture)}&" +
160160
$"redirectUri={Uri.EscapeDataString(uri)}";

0 commit comments

Comments
 (0)