Skip to content

Node.js based forum software built for the modern web

closes #5848

Barış Soner Uşaklı493cd16f39d2
diff --git a/src/middleware/header.js b/src/middleware/header.js
index a30034df69..29716e1f60 100644
--- a/src/middleware/header.js
+++ b/src/middleware/header.js
@@ -104,6 +104,11 @@ module.exports = function (middleware) {
next(null, translated);
});
},
+ browserTitle: function (next) {
+ translator.translate(controllers.helpers.buildTitle(translator.unescape(data.title)), function (translated) {
+ next(null, translated);
+ });
+ },
navigation: async.apply(navigation.get),
tags: async.apply(meta.tags.parse, req, data, res.locals.metaTags, res.locals.linkTags),
banned: async.apply(user.isBanned, req.uid),
@@ -126,7 +131,7 @@ module.exports = function (middleware) {
setBootswatchCSS(templateValues, res.locals.config);
- templateValues.browserTitle = controllers.helpers.buildTitle(data.title);
+ templateValues.browserTitle = results.browserTitle;
templateValues.navigation = results.navigation;
templateValues.metaTags = results.tags.meta;
templateValues.linkTags = results.tags.link;