mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
When doing `/tag/bad-slug/:id/edit`, we now do not route to the edit page but instead 301 to `/tag/good-slug/:id`. This PR makes it so. Also adds validation on the form + backend for slugs: - <img width="300" alt="Screenshot 2026-06-23 at 6 10 53 PM" src="https://github.com/user-attachments/assets/fba5a9e8-20c2-49bc-97c8-ff69ffab582c" /> ``` curl 'http://localhost:3000/tag/172/settings.json' \ -X 'PUT' \ --data-raw '{"tag_settings":{ ... "slug":"a.a" ... }}' {"errors":["Slug is invalid"]}% ``` |
||
|---|---|---|
| .. | ||
| assets | ||
| controllers | ||
| helpers | ||
| jobs | ||
| mailers | ||
| models | ||
| queries/reports | ||
| serializers | ||
| services | ||
| views | ||