Allow Custom Validation on Slug Field Type

In our case we want to prevent the content editors to prefix or postfix the slugs with a slash.

We have the regex (^[a-z0-9-]{1}[/a-z0-9-]*[a-z0-9-]{1}$) and it works well for a single line field, but we would love to apply it to the slug field.

This would be covered by the general Custom Validation request I suppose

1 Like