diff --git a/extensions/tags/js/src/forum/addTagList.js b/extensions/tags/js/src/forum/addTagList.js index d14f2e768c..c66a8204c8 100644 --- a/extensions/tags/js/src/forum/addTagList.js +++ b/extensions/tags/js/src/forum/addTagList.js @@ -59,6 +59,12 @@ export default function addTagList() { more.splice(0, 3).forEach(addTag); + // The current tag may have been excluded by the filters above (e.g. a + // secondary tag outside the 3 most discussed ones). Add it anyway: the + // nav SelectDropdown has no defaultLabel, so without an active item the + // mobile toolbar title would render blank. + if (currentTag && !items.has('tag' + currentTag.id())) addTag(currentTag); + if (more.length) { items.add('moreTags', {app.translator.trans('flarum-tags.forum.index.more_link')}, -16); }