Commit 305f7f83 by Matija Obreza

Merge branch '212-cdn-languages' into 'master'

Resolve "CDN + languages"

Closes #212

See merge request genesys-pgr/genesys-server!118
parents 16d4f666 7fdf8a3b
Pipeline #3049 failed with stages
in 4 minutes 9 seconds
......@@ -38,8 +38,10 @@ public class LocaleWrappedServletResponse extends HttpServletResponseWrapper {
}
private boolean isExcluded(String url) {
// Exclude querystring-only urls
return url.startsWith("?") || localeUrlMatcher.isExcluded(url);
// Exclude querystring-only urls, URLs starting with // and anything excluded by the matcher
boolean excluded = url.startsWith("?") || url.startsWith("//") || localeUrlMatcher.isExcluded(url);
LOG.trace("isExcluded? {} --> {}", url, excluded);
return excluded;
}
@Override
......
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