Issue with renaming project and re-using name as a group

Summary

When renaming a project and then re-using that project name as a new group name the redirects of issues, etc. seems to not work.

Steps to reproduce

  1. Given a project named "old-name," we want to have there be a group called "old-name"
  2. Rename project "old-name" to "new-name"
  3. Create group "old-name"
  4. Move project "new-name" under group "old-name"

Example Project

Customer Success group under GitLab-com. The SA-Service-Desk project used to be named customer-success.

What is the current bug behavior?

http://server/old-name/issues/123 gets a 404.

What is the expected correct behavior?

Redirects for old issues http://server/old-name/issues/123 will go to http://server/old-name/new-name/issues/123

Relevant logs and/or screenshots

See Customer Success group and SA-Service-Desk project in GitLab-com

Output of checks

This bug happens on GitLab.com

Possible fixes

Not sure.

Assignee Loading
Time tracking Loading