-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect Repo URLs on User/Org rename #17655
Labels
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Comments
silverwind
added
the
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
label
Nov 15, 2021
silverwind
changed the title
Redirect on User/Org rename
Redirect Repos on User/Org rename
Nov 15, 2021
silverwind
changed the title
Redirect Repos on User/Org rename
Redirect Repo URLs on User/Org rename
Nov 15, 2021
The feature is similar as
|
Would it interfere with the existing repo redirect mechanism that triggers on repo rename? I did not check the code, but maybe we could re-use part of that system and additionally trigger it on user/org rename. |
Yes, the userredirect should be also considered. I have updated my above comment. |
wxiaoguang
pushed a commit
that referenced
this issue
Oct 11, 2022
Fixes #17655 If you rename `user1` to `user2` and visit `/user1` you get redirected to `/user2`. But if you visit `/user1/repo` you just get a 404 error. With this PR the user is redirected to `/user2/repo`.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Description
If a repo is renamed, the old repo URL will redirect to the new one. This feature is not present when a user or org is being renamed, while it would definitely be nice to have to allow an easy transition to the new URL.
Edit: Did some testing: Redirects on the user/org pages are already present, they are just missing for the repos.
The text was updated successfully, but these errors were encountered: