introducing Freemarker getI18nContextUrl function to make sure the lang parameter is set (according to current Locale) in the generated URL.