I have created a composite component where a button click will take user to a different page.
Below are the steps I followed:
Component template editor
- In my composite component I have added a property with value type “Page ID”.
- In composite component button event I have added a Open Page Navigation which is bind to Page ID property.
Now exited the template editor view
- For Page ID property I bind the page where I want to navigate.
Output- Its navigating without the page ID causing 404 error.
Can someone tell me how Navigation works in composite component?
Hi, you can’t access the context of a certain page inside a component template, since the component could be on any page.
This guide by @Dimos_Vamvourellis explains how you can expose the event outside the component: