current

const val current: String

Whether the item's path matches the current browser URL.

A match occurs when both share the same base origin (like https://example.com), the same path (like /path/to/page), and the browser URL contains at least all the query parameters with the same values from the item's path.

See #/elements/vaadin-side-nav-item#property-matchNested for how to change the path matching behavior.

The state is updated when the item is added to the DOM or when the browser navigates to a new page.