Any way to know if navigation occured due to the app calling the page api #137
-
Page open would trigger onNavigate Any way to know when onNavigate is triggered that it was an application-initiated page open? Also, what does passing OpenMode(Append vs ReplaceAll) in the Page API do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @dhrumil83, The onNavigate params (WorkloadNavigation) have no 'source' only the target. |
Beta Was this translation helpful? Give feedback.
Hi @dhrumil83,
The onNavigate params (WorkloadNavigation) have no 'source' only the target.
You can try and look at the createExperience.action (e.g., "open.createSampleWorkload") which is triggered only upon create and see if you can define different paths to load there if you need to handle different scenarios, then you can look at the targetUrl - it will be different depends on the path provided by create action handling or the item's manifest ('editor'.'path').