Issue #2659992: When going directly to login/registration on a subsite, redirect back to the subsite’s home page