imacrayon / eventsinwichita

Just Events in Wichita, nothing else.
https://eventsinwichita.com
MIT License
11 stars 6 forks source link

Sluggable trait can cause duplicate slugs #16

Closed imacrayon closed 5 years ago

imacrayon commented 7 years ago

The algorithm that the current Sluggable trait uses assumes that each slug already in the database has been incremented by one. It's not safe to make this assumption.

If place-title-1 and place-title-3 already exist in the database, adding another place-title will generate the slug place-title-3 again.

imacrayon commented 5 years ago

Places have been removed in the new rewrite