Tags and spaces

Here in meta I can search by tag using spaces and it gives me results.
imagen

However, in my Discourse installation (v2.2.0.beta2 +5) this would give me no results. Instead, i would have to write ‘pr-welcome’.

Also, when adding tags to a topic, it gives me the option to create ‘example tag’ when ‘example-tag’ already exists.

1 Like

@nbianca improved this behaviour a few days ago, so you will need to update your installation to see the new behaviour (we always run the latest version here on meta). For reference, this was the change.

You are right, that behaviour exists on meta as well. Note that if you try and do this, it won’t actually work because the server validates the input before storing in the database. Once you refresh the page any duplicate tags will disappear.

9 Likes

This should now be fixed by

https://github.com/discourse/discourse/commit/37b7afa522b77dc3a3fb78507f2fe8690819e11e

and

https://github.com/discourse/discourse/commit/3377f26ebabf4143aaffd4c9bfa70eadc249f7a7

With @chipet92s’s example, the dropdown will now not provide the option to create a duplicate tag:

When the tag does not already exist, the “clean” version will now be displayed next to ‘create’:

5 Likes

This topic was automatically closed after 5 days. New replies are no longer allowed.