Our login page which comes as part of our UI package currently has a hard-coded app name. This is not ideal because with every new app we have to manually edit HTML in login.html to change the app name. Is there a way to programatically get the Mendix app name through JS, for example, and display it on the login page?
You should create a custom login page within Mendix. Check out the login form widget from the appstore: https://appstore.home.mendix.com/link/app/87/