When admins create or update an news item—or any other entity—in our homegrown CMS, a url slug is generated based on it’s title. The downside here is that when the title changes, the old url would break. On the other hand, if we wouldn’t regenerate the url on updates, titles that were edited later on would still have an old slug in the url, which isn’t an ideal situation either.
Every two weeks I send out a newsletter containing lots of interesting stuff for the modern PHP developer. You can expect quick tips, links to interesting tutorials, opinions and packages. Want to learn the cool stuff? Then sign up now!