PHP 8.2.10, Phorge at 7868ab3754fad13714640451d664d5bc71b7a02f.
Steps to reproduce:
- Go to http://phorge.localhost/project/edit/form/default/
- Create project with name Slug404Name
- Successfully go to http://phorge.localhost/tag/slug404name/
- Select Edit Details to go to http://phorge.localhost/project/edit/23/
- Rename project to Slug404NameAlt
- Successfully go to http://phorge.localhost/tag/slug404name/ which redirects to new primary slug
- Select Edit Details to go to http://phorge.localhost/project/edit/23/
- Remove slug404name from Additional Hashtags && in the Name field replace Slug404NameAlt with Slug404Name
- Go to http://phorge.localhost/tag/slug404name/
Expected outcome:
Project page is rendered
Actual outcome:
404 error
Other comments:
- Explicitly adding the already-primary slug Slug404Name to Additional Hashtags on http://phorge.localhost/project/edit/23/ makes http://phorge.localhost/tag/slug404name/ work again, as assumed in https://phabricator.wikimedia.org/T224662#5223847
- Might not be the only one to reproduce but finally a way to reproduce. Upstreaming from https://phabricator.wikimedia.org/T224662 as we've ran into this several times.