diff --git a/app/assets/javascripts/discourse/components/category-title-link.js.es6 b/app/assets/javascripts/discourse/components/category-title-link.js.es6 index 96de552c17b..4582e9bb8e6 100644 --- a/app/assets/javascripts/discourse/components/category-title-link.js.es6 +++ b/app/assets/javascripts/discourse/components/category-title-link.js.es6 @@ -11,9 +11,16 @@ export default Em.Component.extend({ buffer.push(""); - if (Em.isEmpty(logoUrl)) { + var noLogo = Em.isEmpty(logoUrl); + if (noLogo || (!Em.isEmpty(category.get('parentCategory')))) { buffer.push(Handlebars.Utils.escapeExpression(category.get('name'))); - } else { + + if (!noLogo) { + buffer.push("
"); + } + } + + if (!noLogo) { buffer.push(""); } buffer.push("
");