lightning__UrlAddressable doesn’t accept properties within a XML tag. Instead, the component receives configuration and data when a user or code navigates to it using the standard__component page reference type.
The navigation attributes that determine the URL and passed data are:
Property
Type
Description
Required
componentName
String
The component’s name in the format namespace__componentName (e.g., c__MyComponent). This attribute is required within the attributes object of the PageReference.
Yes
state
Object
An object containing key-value pairs that are serialized into URL query parameters to pass state information to the component. Keys must include a namespace (e.g., c__paramName). Values must be strings.
No
Usage
Use the lightning__UrlAddressable target to make your component accessible via a browser URL.
This target is supported only in the following types of projects. It’s not supported in Experience Builder sites.
This release is in preview. Features described here don't become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can't guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.