This javascript function inside the (UI2) login.htm page would most likely be why.
function LeaveLoginPage()
{
$.cookie("session", existingSession, { path: "/" });
var page = UrlParameters.Get("page");
if (page == "")
page = "/";
location.href = page;
}
Switch this line
page = "/";
To this...