To be able to link clicks in the Notifications list back to the component that generated the content, we need to save metadata about the page and url where it's placed.
The setWeavyNavigation
query will trigger a workflow that saves the data. This is usually done once for each Weavy component if the metadata isn't already set.
Do the following for all the contextual Weavy components (that has a uid
) such as Weavy Comments, Weavy Chat, Weavy Files or Weavy Posts.
- Select and open the Component inspector for a contextual Weavy component, for instance a Weavy Posts component called
weavyPosts1
.
- Add an Event handler for
Set weavy navigation
and set it to Run script.
- Set the script to
setWeavyNavigation.trigger({
additionalScope: {
uid: weavyPosts1.uid
}
})
- Replace
weavyPosts1
with the id of your component.
The component will trigger the workflow query with a uid
once it's loaded, as long as the page metadata has not been set already.