[fix bug 918060] Use locale aware redirect.
[fix bug 711329] Respect client's locale on login.