So I am trying to do some practice projects on Experience Cloud, I have two questions:
- How should I write proper navigation within NavigationMixin.Navigate, so type should be standard_webPage but in attributes how should I give URL with the id to navigate dynamically?
- From the builder of Experience Cloud, how should I create the new page so its URL name will be dynamic and not static?
Here is my Navigation:
this[NavigationMixin.Navigate]({
type: 'standard__webPage',
attributes: {
url: `https://urlName/iWantIdToBeHere`
}
})
I was googling about dynamic navigation and read on several pages for example: https://www.sfdcpoint.com/salesforce/navigation-service-in-lwc/ but still could not get answer
Best Answer
From the question, it seems you're trying to send a parameter via URL to a community page and trying to retrieve the same. It can be done in below steps -