Temporary solution to this, is to alter the login.html page with the following code:
Btw, interesting observation: The logic does not trigger when I use the following URL: http://localhost/ which results into something like http://localhost/#1300449398282_775
The logic however does trigger if I use a more explicit URL: http://localhost/index.html or http://localhost/login.html
It seems that this is still not working. When I close my browser, the Alternative Page's logic never gets triggered unless you do a hard refresh in your browser.
Once I log in, I'm just presented with my old (previous) page.
See a bug post I posted here: https://forum.mendix.com/questions/2027/Mendix-clientside-bug