[FIX] fix translations URL in translation.js
The URL given to load the translations had an extra '/'. (/website//translations/xxx) This caused a http redirection that failed for "Mixed Content" on https environments.
This commit is contained in:
@@ -65,7 +65,11 @@ var TranslationDataBase = Class.extend(/** @lends instance.TranslationDataBase#
|
||||
var self = this;
|
||||
var cacheId = session.cache_hashes && session.cache_hashes.translations;
|
||||
url = url || '/web/webclient/translations';
|
||||
url += '/' + (cacheId ? cacheId : Date.now());
|
||||
if (!url.endsWith('/')) {
|
||||
url += '/';
|
||||
}
|
||||
|
||||
url += cacheId ? cacheId : Date.now();
|
||||
return $.get(url, {
|
||||
mods: modules ? modules.join(',') : null,
|
||||
lang: lang || null,
|
||||
|
||||
Reference in New Issue
Block a user