Read AgileApps App URL and put it in a var

Hi All,

I have a jsp page which contains an URL, leading to an object in the app. The domain of the URL will be different for all environments, naturally. Is there a way to read the domain of an AA App and put it in a variable, so that there is no need to change it manually with deployment on a new environment?

Thanks and regards,

Hi Yavor,

Here, we can use the location web API to read the host(domain) name, href, port, etc inside the javascript section.

Web API URL: Location - Web APIs | MDN

Please let me know if you have any doubt.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.