mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #3185 from techAPJ/patch-1
FIX: uncategorized is showing up in title tag on topics
This commit is contained in:
commit
62b1969c4b
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue