diff --git a/app/assets/javascripts/discourse/routes/tags-show.js.es6 b/app/assets/javascripts/discourse/routes/tags-show.js.es6 index c4d7edd2447..73e992a3e41 100644 --- a/app/assets/javascripts/discourse/routes/tags-show.js.es6 +++ b/app/assets/javascripts/discourse/routes/tags-show.js.es6 @@ -109,7 +109,7 @@ export default Discourse.Route.extend({ params, {} ).then(list => { - if (list.topic_list.tags) { + if (list.topic_list.tags && list.topic_list.tags.length === 1) { tag.set("id", list.topic_list.tags[0].name); // Update name of tag (case might be different) } controller.setProperties({ diff --git a/test/javascripts/acceptance/tags-intersection-test.js.es6 b/test/javascripts/acceptance/tags-intersection-test.js.es6 index 85787a68642..1025266e484 100644 --- a/test/javascripts/acceptance/tags-intersection-test.js.es6 +++ b/test/javascripts/acceptance/tags-intersection-test.js.es6 @@ -19,8 +19,8 @@ acceptance("Tags intersection", { draft_key: "new_topic", topics: [{ id: 16, posters: [] }], tags: [ - { id: 1, name: "first", topic_count: 1 }, - { id: 2, name: "second", topic_count: 1 } + { id: 1, name: "second", topic_count: 1 }, + { id: 2, name: "first", topic_count: 1 } ] } });