mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
FIX: uncategorized is showing up in title tag on topics
This commit is contained in:
parent
4a5d79ad89
commit
e87ff31d4c
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ var TopicRoute = Discourse.Route.extend(ShowFooter, {
|
||||||
var result = model.get('title'),
|
var result = model.get('title'),
|
||||||
cat = model.get('category');
|
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'),
|
var catName = cat.get('name'),
|
||||||
parentCategory = cat.get('parentCategory');
|
parentCategory = cat.get('parentCategory');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue