The LocaleURLMiddleware now stores current language in session on each request.
This is done to prevent language switches on redirects (such as the login redirect) which in most cases don't use a language prefix.