New category name with a number in it returns "slug is invalid" but category is created anyway

Try to create a category with a name like this:

group 1 category

It should return an error message:

Slug is invalid

However, the category was still created, with the slug group-1-category, so it must not have been invalid after all. Editing it and changing the name (not the slug) will also throw the error, but still apply the change.

1 Like

Something for your list @techapj?

1 Like

Fixed via

https://github.com/discourse/discourse/commit/bfd21461dfd5881c6e9cad087bca7de1e30de94b

5 Likes