Hi!
Depending what environment, I am using how can I change url dynamically using javascript? For example: If I am in development environment, the url should be window.open("https://tool.osys-dev.aws and If I am in internal environment, the url should be window.open("https://tool.osys-int.aws.
Thank you
Hi Edward,
Please check the solution of this post. This should solve your issue.
Thanks,
Neha
Hi,
In addition you can use below approach as well.
https://www.outsystems.com/forums/discussion/78611/how-to-implement-dynamic-url/
Thanks.
Hello
If you want to get the current environment hostname just add this JS code and you will get the current domain, you can further add the page address, also add https beforeit
Use window.location.hostname in you javascript code,
I hope the helpsBet RegardsTousif Khan