You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to disable slugs on a subset of entries in a collection but new entires appear to still have slugs generated.
How to reproduce
Create blueprint with a slug field, slug field is set to auto generate based on title, but conditionally visible based on a "has profile" boolean, if slug is hidden I expect it to be empty and remain empty
Create collection with slugs set to not required
Create a new entry with "has profile" false
New entry is created and has slug set
Stranger still, and this is probably just something I don't understand about revisions, but I don't see a slug value set on the content record at all, but I do see it on the revision record
You'll need to remove the Slug field from your blueprint, instead of just marking it as hidden.
The slug is an optional field on this blueprint, removing it doesn't make sense.
duncanmcclean
changed the title
Slug generated on entries with no slug
Slug still being generated, even when field is hidden.
Mar 12, 2025
duncanmcclean
changed the title
Slug still being generated, even when field is hidden.
Slug still being generated, even when field is hidden
Mar 12, 2025
Bug description
I'm trying to disable slugs on a subset of entries in a collection but new entires appear to still have slugs generated.
How to reproduce
slug
is hidden I expect it to be empty and remain emptyStranger still, and this is probably just something I don't understand about revisions, but I don't see a slug value set on the content record at all, but I do see it on the revision record
Logs
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: