When a file moves in the repo, show where it moved to on the 404 page
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
So often it happens that somebody links to a file in the master branch in the GitLab repository content browser. The issue is that as the project evolves, files are moved. And then such link often become invalid and a user coming later gets a 404 page because there is no file anymore at that location at that time in the master branch.
Proposal
My proposal would be that in cases that the file existed in the past in the master (or any other branch) branch at any point in time in the past, GitLab displays where it was moved to (if it is recorded in git) on the 404 page. So 404 should still be there, but it could be more helpful by including "hey, your file moved there". And it might be that this leads to another 404 page if the file was moved again, but eventually the user would come to latest location of the file in that branch.