Skip to content

Node.js based forum software built for the modern web

using translator.unescape instead of replaces

Julian Lam514317ab20c6
diff --git a/public/src/app.js b/public/src/app.js
index d6acad4554..421cf71943 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -440,7 +440,7 @@ app.cacheBuster = null;
.replace('{browserTitle}', function () { return config.browserTitle; });
// Allow translation strings in title on ajaxify (#5927)
- title = title.replace(/[/g, '[').replace(/]/g, ']');
+ title = translator.unescape(title);
translator.translate(title, function (translated) {
titleObj.titles[0] = translated;