Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
When editing part titles on new editions of published guides, the slug was auto updating. This change of slug would go unnoticed and lead to those old URLs no longer working (they redirect to the guide's first page rather than 404ing). This breaks a lot of cross-linking between editions and can take a user out of the context of what they are doing.
Change the auto slug generation behaviour to:
Check whether a slug field is empty or accepts generated values before updating it. * When a slug begins as empty, then it is accepted that all future edits should also generate a new slug. eg when fixing a typo. * Use the flag `accepts-generated-value` to designate that a slug can be auto updated at any time. eg the edition isn’t yet published