diff --git a/services/static-webserver/client/source/class/osparc/utils/Utils.js b/services/static-webserver/client/source/class/osparc/utils/Utils.js index 07cff60b2821..67521f76086d 100644 --- a/services/static-webserver/client/source/class/osparc/utils/Utils.js +++ b/services/static-webserver/client/source/class/osparc/utils/Utils.js @@ -94,7 +94,8 @@ qx.Class.define("osparc.utils.Utils", { replaceTokens: function(str, key, value) { // `str` might be a a localized string, get the string first str = str.toString ? str.toString() : str; - return str.replaceAll("${"+key+"}", value); + const regex = new RegExp("${"+key+"}", "g"); + return str.replace(regex, value); }, /**