Commit 65ad6bb3 authored by Matija Obreza's avatar Matija Obreza
Browse files

FIX: Language navigation uses incorrect REQUEST_INTERNAL_URL

- Using default language must also set REQUEST_LOCALE_LANGUAGE to ""
parent 2042311b
......@@ -172,8 +172,9 @@ public class LocaleURLFilter extends GenericFilterBean {
filterChain.doFilter(localeRequest, localeResponse);
} else {
LOG.debug("No match on url {}", url);
LOG.debug("No match on url {} setting {}", url, getInternalUrl(url, httpRequest.getQueryString()));
httpRequest.setAttribute(REQUEST_INTERNAL_URL, getInternalUrl(url, httpRequest.getQueryString()));
httpRequest.setAttribute(REQUEST_LOCALE_LANGUAGE, "");
final LocaleWrappedServletResponse localeResponse = new LocaleWrappedServletResponse(httpResponse, localeUrlMatcher, null, defaultLocale.toLanguageTag());
filterChain.doFilter(servletRequest, localeResponse);
}
......
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