Get URL by Target
Get URL by target (same targets available as in navigatToRoute), useful for links. URLs are built using data passed in the message. Session ID is provided by the handler if needed.
Available targets can found in Suite codebase it is possible to use on EMSAdmin pages as well.
If your application using the integrationJs for navigation please migrate to this solution.
Usage
Name | Description |
---|---|
window.e.utils.v2.navigation.getUrlByTarget({ namespace, action, params }) |
promise return URL by target |
Parameters
Name | Description | Type | Required | Default value |
---|---|---|---|---|
namespace |
Name of the group. | yes | ||
action |
Name of the target, can be empty. | yes | ||
params |
Parameters what the actual target needs. | no |
Examples
const targetURL = await window.e.utils.v2.navigation.getUrlByTarget({ namespace: 'email_campaigns', action: 'edit', params: { campaign_id: '1' } });
const targetURL = await window.e.utils.v2.navigation.getUrlByTarget({ namespace: 'homepage', action: ''});