Branch link returns 404 on merged branch, when "delete source branch" is enabled
From the MR page, if you click on the branch name after merging, the page returns a 404 error
Steps to reproduce
- Create a branch
- Create a MR for said branch
- On the MR, mark the option "delete source branch"
- Merge the MR
- Wait for merge to succeed, and for the branch to be deleted
- Enter the MR again, and try clicking on the branch name
Expected result.
The branch name should not be clickable, or should redirect to a page explaining that the branch has been deleted
Actual result
I get a 404 error