Skip to content

Commit c55b659

Browse files
authored
[Pre3] Rename DisableMatchAllIgnoresLeftUriPart (#35056)
1 parent b5d672f commit c55b659

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

aspnetcore/blazor/fundamentals/routing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,12 @@ Use a <xref:Microsoft.AspNetCore.Components.Routing.NavLink> component in place
16241624

16251625
There are two <xref:Microsoft.AspNetCore.Components.Routing.NavLinkMatch> options that you can assign to the `Match` attribute of the `<NavLink>` element:
16261626

1627+
<!-- UPDATE 10.0 PREVIEW3
1628+
Change `DisableMatchAllIgnoresLeftUriPart` to
1629+
`EnableMatchAllForQueryStringAndFragmentSwitchKey`
1630+
set to `true`.
1631+
-->
1632+
16271633
* <xref:Microsoft.AspNetCore.Components.Routing.NavLinkMatch.All?displayProperty=nameWithType>: The <xref:Microsoft.AspNetCore.Components.Routing.NavLink> is active when it matches the current URL, ignoring the query string and fragment. To include matching on the query string/fragment, use the `Microsoft.AspNetCore.Components.Routing.NavLink.DisableMatchAllIgnoresLeftUriPart` [`AppContext` switch](/dotnet/fundamentals/runtime-libraries/system-appcontext).
16281634
* <xref:Microsoft.AspNetCore.Components.Routing.NavLinkMatch.Prefix?displayProperty=nameWithType> (*default*): The <xref:Microsoft.AspNetCore.Components.Routing.NavLink> is active when it matches any prefix of the current URL.
16291635

aspnetcore/release-notes/aspnetcore-10/includes/blazor.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,14 @@ requestMessage.SetBrowserResponseStreamingEnabled(false);
122122
123123
For more information, see [`HttpClient` and `HttpRequestMessage` with Fetch API request options (*Call web API* article)](xref:blazor/call-web-api?view=aspnetcore-10.0#httpclient-and-httprequestmessage-with-fetch-api-request-options).
124124
125+
XXXXXXXXXXXXXXXXXXXX CHANGE EARLIER COVERAGE XXXXXXXXXXXXXXXXXXXX
126+
127+
In the "Ignore the query string and fragment when using `NavLinkMatch.All`" section, change
128+
`DisableMatchAllIgnoresLeftUriPart` to `EnableMatchAllForQueryStringAndFragmentSwitchKey`
129+
set to `true`.
130+
131+
Also make this change in the *Routing* article at Line 1633.
132+
133+
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
134+
125135
-->

0 commit comments

Comments
 (0)