Details
Description
If
- current locale is tr-TR (and most certainly az-AZ, maybe others, where dotless i exists),
- the theme name contains a "i" (`RAINBOWSTONE-SAPHIR` for example),
- the theme uses this line in /template/includes/Header.ftl to generate a link to a Less file (rainbowstone, helveticus, maybe others) :
<link rel="stylesheet/less" href="<@ofbizContentUrl>/helveticus/${visualTheme.visualThemeId?replace("_","-")?lower_case}.less</@ofbizContentUrl>" type="text/css"/>
Then
- the Freemarker `lower_case` function generates dotless i's when lowercasing "I",
- the link to the Less ends up with a 404
- no more styles :/
Leads to fix this
- Find a way to override the current locale for `lower_case` calls (and always use en-EN)
- Do not rely on a locale sensitive function to generate links to style files
- Ban "i" from visual theme names
- more ideas ?