Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slug field: execute generate on every save to ensure valid slugs #1211

Open
JohannaPeanut opened this issue Jul 4, 2024 · 1 comment
Open

Comments

@JohannaPeanut
Copy link

Hi
It's nice that we can give the user control over slugs, that makes sense in some places. But it would be very helpful if generate is not only executed on "Regenerate"-Click but also on every save.
I had assumed that this would happen, but unfortunately the CMS user can "break" the slug with spaces, non-alphanumeric characters etc.

@henri42
Copy link

henri42 commented Jul 13, 2024

Hi !
I had the same issue with a CMS user who broke his home page for this reason (whitespace and comma in a slug).
Maybe a validation property on fields.slug to reject slugs containing whitespaces or special chars could do the trick ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants