Commit b3d9dc34 authored by Matija Obreza's avatar Matija Obreza

Fixed locale redirect problem "Spanish - Latin America" to "es-419"

parent d7d2952e
......@@ -88,8 +88,8 @@ public class HtmlController extends BaseController {
}
if (requestedLocale == null && requestLocale != null) {
_logger.info("Redirecting to request locale: " + requestLocale.toLanguageTag());
return "redirect:/" + requestLocale.toLanguageTag().toLowerCase() + "/welcome";
_logger.info("Redirecting to request locale: " + requestLocale.getLanguage());
return "redirect:/" + requestLocale.getLanguage().toLowerCase() + "/welcome";
}
return "redirect:/welcome";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment