Skip to content

Duplicate slug incrementing #146

Answered by radiac
37b asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like this was a bug in the unique slug generator, should be fixed in #152.

The system should now be good up to 10,000 unique slugs now - the algorithm uses a hardcoded truncate length of 5, one for the underscore and 4 for the numbers.

The slugs are intended for human-readable (and SEO-friendly) URLs; if anyone approaches 10,000 collisions then arguably it's not going to be a useful slug any more. I think the best thing at that point would be to look at adding support for custom slugging algorithms, as I can't imagine many use cases at that point so it's probably safest to say it's out of scope.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by radiac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants