Skip to content

[5.x] Fix failed slug validation when slug contains underscores - #10265

Merged
jasonvarga merged 1 commit into
statamic:5.xfrom
o1y:fix-slug-validation-10262
Jun 5, 2024
Merged

jasonvarga merged 1 commit into
statamic:5.xfrom
o1y:fix-slug-validation-10262

Conversation

@o1y

@o1y o1y commented Jun 5, 2024

Copy link
Copy Markdown
Contributor

Fixes #10262

@o1y o1y changed the title Fix failed slug validation when slug contains underscores [5.x] Fix failed slug validation when slug contains underscores Jun 5, 2024
@jasonvarga

Copy link
Copy Markdown
Member

Thanks. I wonder if we intentionally didn't allow underscores in slugs, even though the validation message says they are okay.

I don't think it's a problem for them to contain underscores though. It's just a bit derpy looking but thats subjective. Unless I'm forgetting something, @jesseleite ?

@jesseleite

jesseleite commented Jun 5, 2024

Copy link
Copy Markdown
Contributor

Given the validation error message in my original PR, it seems underscores should be allowed. Maybe there's an edge case somewhere, where we don't want to allow underscores? ...but I cannot think of where! 👍

@jasonvarga
jasonvarga merged commit 694a26a into statamic:5.x Jun 5, 2024
@o1y
o1y deleted the fix-slug-validation-10262 branch June 20, 2026 16:34
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

Successfully merging this pull request may close these issues.

Entry can't be saved if the Slug contains underscore

3 participants