Locale specific js loaded from wrong url after adding cache bust

I am experiencing the following. If I do not configure cache bust as part of dojo parameters in index.html everything works fine (well, except for cache bust not being configured...). If I do add cache bust to dojo config by adding the line cacheBust: "{{cachebust}}" in index.html then the following happens. When loading the application, the browser will try to retrieve the locale specific js file from http://localhost:8080/mxui/nls/mxui_en-gb.js instead of http://localhost:8080/mxclientsystem/mxui/nls/mxui_en-gb.js like it's supposed to. This seems like a Mendix bug to me, but I wanted to check if anyone has ever run into a similar issue or knows how to solve this. As loading this file is triggered by obfuscated javaScript I cannot do any debugging myself.
2 answers

This was caused by a simple mistake that I just did not see.

I had not added

cacheBust: "{{cachebust}}"

but had used

cacheBust: {{cachebust}}

so without the double quotes. Adding them fixed the issue.


i am not totally sure but the mxclientsystem is a symbolic or virtual dir in most mendix configurations, seems to me that http://localhost:8080/mxui/nls/mxui_en-gb.js does not point to a existing file, do you get a 404 in the browser console on this file?