Merge requests not showing referenced issues when not targeting default branch
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=573437)
</details>
<!--IssueSummary end-->
When referencing an issue in a merge request description the reference is not being shown in the MR widget below when the target branch is not the default branch
For example https://gitlab.com/gitlab-org/api/client-go/-/merge_requests/2465
{width=1011 height=968}
I agree that it should not close the issue when merged, but it should still show the reference
issue