diff --git a/src/Components/Web/src/PublicAPI.Unshipped.txt b/src/Components/Web/src/PublicAPI.Unshipped.txt
index fa9194d9adf3..397955cb832c 100644
--- a/src/Components/Web/src/PublicAPI.Unshipped.txt
+++ b/src/Components/Web/src/PublicAPI.Unshipped.txt
@@ -1,2 +1,2 @@
#nullable enable
-virtual Microsoft.AspNetCore.Components.Routing.NavLink.ShouldMatch(string! currentUriAbsolute) -> bool
\ No newline at end of file
+virtual Microsoft.AspNetCore.Components.Routing.NavLink.ShouldMatch(string! uriAbsolute) -> bool
\ No newline at end of file
diff --git a/src/Components/Web/src/Routing/NavLink.cs b/src/Components/Web/src/Routing/NavLink.cs
index 58b29c53bf82..e3462e5a0f97 100644
--- a/src/Components/Web/src/Routing/NavLink.cs
+++ b/src/Components/Web/src/Routing/NavLink.cs
@@ -111,24 +111,24 @@ private void OnLocationChanged(object? sender, LocationChangedEventArgs args)
///
/// Determines whether the current URI should match the link.
///
- /// The absolute URI of the current location.
+ /// The absolute URI of the current location.
/// True if the link should be highlighted as active; otherwise, false.
- protected virtual bool ShouldMatch(string currentUriAbsolute)
+ protected virtual bool ShouldMatch(string uriAbsolute)
{
if (_hrefAbsolute == null)
{
return false;
}
- var currentUriAbsoluteSpan = currentUriAbsolute.AsSpan();
+ var uriAbsoluteSpan = uriAbsolute.AsSpan();
var hrefAbsoluteSpan = _hrefAbsolute.AsSpan();
- if (EqualsHrefExactlyOrIfTrailingSlashAdded(currentUriAbsoluteSpan, hrefAbsoluteSpan))
+ if (EqualsHrefExactlyOrIfTrailingSlashAdded(uriAbsoluteSpan, hrefAbsoluteSpan))
{
return true;
}
if (Match == NavLinkMatch.Prefix
- && IsStrictlyPrefixWithSeparator(currentUriAbsolute, _hrefAbsolute))
+ && IsStrictlyPrefixWithSeparator(uriAbsolute, _hrefAbsolute))
{
return true;
}
@@ -138,7 +138,7 @@ protected virtual bool ShouldMatch(string currentUriAbsolute)
return false;
}
- var uriWithoutQueryAndFragment = GetUriIgnoreQueryAndFragment(currentUriAbsoluteSpan);
+ var uriWithoutQueryAndFragment = GetUriIgnoreQueryAndFragment(uriAbsoluteSpan);
if (EqualsHrefExactlyOrIfTrailingSlashAdded(uriWithoutQueryAndFragment, hrefAbsoluteSpan))
{
return true;