Navigation between apps (using URL) across different environments

I have set up navigation between two apps (using the URL as a static value). I’m guessing this navigation action will fail when I push our work to the Test-environment. Any smart tricks to make this work?

2 solutions:

The best is to just use a relative path. I believe you can use the Open URL action node with just “/mysecondapp”.

Optionally, you may construct the URL using a function return "https://${hostname}/myapp", where the hostname variable is found in App Variables as the base URL of the current environment (see docs article on built-in App Variables).