fix missing locales and wrong routing after logout