-
I am using tagulous indirectly as a user of Defect Dojo and I am having a problem. I have multiple tags that all begin with the same n characters which get truncated to something like this for the slug
However, once I hit
Is there a way to increase this number of increments? If not, can I at least lengthen the slug? I trying doing this at the DB level but it did not bubble up to the app. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.