From e87ff31d4cc35bdfc45103967837421c59981765 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 9 Feb 2015 10:50:39 +0530 Subject: [PATCH] FIX: uncategorized is showing up in title tag on topics --- app/assets/javascripts/discourse/routes/topic.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/routes/topic.js.es6 b/app/assets/javascripts/discourse/routes/topic.js.es6 index 7d47ae63c0a..31397b3779b 100644 --- a/app/assets/javascripts/discourse/routes/topic.js.es6 +++ b/app/assets/javascripts/discourse/routes/topic.js.es6 @@ -20,7 +20,8 @@ var TopicRoute = Discourse.Route.extend(ShowFooter, { var result = model.get('title'), cat = model.get('category'); - if (cat && !cat.get('isUncategorized')) { + // Only display uncategorized in the title tag if it was renamed + if (cat && !(cat.get('isUncategorizedCategory') && cat.get('name').toLowerCase() == "uncategorized")) { var catName = cat.get('name'), parentCategory = cat.get('parentCategory');