Determines the appropriate aria-current value for a link href against the
current pathname.
Returns "page" for exact matches, "true" for child routes (for example
/about/team under /about), and "false" otherwise. Trailing slashes are
normalized (except for root /).
Parameters
pathname: string|null
Current route pathname to test, or null for "false".
href: string
Link href to compare against; trailing slashes are normalized (except root /).
Returns "false"|"page"|"true"
"page" for an exact match, "true" when pathname is a child route of href, otherwise "false".
Determines the appropriate
aria-currentvalue for a link href against the current pathname.Returns
"page"for exact matches,"true"for child routes (for example/about/teamunder/about), and"false"otherwise. Trailing slashes are normalized (except for root/).