Category Slug error when changing "Allow owner to edit first post indefinitely"

When I tried to change the category setting “Allow owner to edit first post indefinitely” from false to true, the “Category Slug” field—which was optional and left blank—suddenly triggered an error saying: “To continue, please correct the following: Category Slug: is required.”

2 Likes

I can repro. Looks like slug is only optional on create but not on edit.

1 Like

Good find! thanks for the report, we auto-generate a slug on saving an edit if it’s left blank, so the validation is too strict here.

I’m removing the validation here:
https://github.com/discourse/discourse/pull/41570

1 Like