Hi,
In community commons there is a java action called GetApplicationUrl which returns the application url
hope this will be helpful for you.
As Javith says, there is GetApplicationUrl in the Community Commons module in the Marketplace.
https://marketplace.mendix.com/link/component/170
However, if you are deploying your application to the Mendix Cloud this won’t pick up any custom domain you may apply to your application. If you need more control of your base URL you can manually set this as a constant in your application instead.
Good luck!
As Javith says, there is GetApplicationUrl in the Community Commons module in the Marketplace.
https://marketplace.mendix.com/link/component/170
However, if you are deploying your application to the Mendix Cloud this won’t pick up any custom domain you may apply to your application. If you need more control of your base URL you can manually set this as a constant in your application instead.
Good luck!