AP.navigator.getLocation() provides a JSON object, but not the product’s base url,
AP.context.getContext() also provides a JSON object, but not the product’s base url,
Rationale: When some clicks an
- We use AP.navigator.go() so they benefit from internal navigation,
- Except if they use shift+click, middle-click or ctrl+click, in which cases they want to open in a new window. For those cases, we need to avoid JS navigation, and provide a suitable
hrefvalue, starting with the product’s base url.
PS: We can’t get the URL from xdm_e because it is deprecated, and AP.getLocation() is not documented anywhere.