When developing a Connect plugin, in the Javascript of the iframe, I need the host URL. How can I get it?
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,
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 href value, starting with the product’s base url.
Thank you.
PS: We can’t get the URL from xdm_e because it is deprecated, and AP.getLocation() is not documented anywhere.