[fix bug 918060] Use locale aware redirect.
[fix bug 711329] Respect client's locale on login.
Merge pull request #620 from glogiotatidis/918060

918060