Web Edit Causing Commits to Fail as "File with this name doesn't exist"
<!--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=410935)
</details>
<!--IssueSummary end-->
Summary:
When attempting to edit document or replace entirely, issue pops up stating "A file with this name doesn't exist". This may be related to other issues where it tries to fork from non-original branch
Steps to Reproduce:
-Go to file inside repository with multiple forks. Attempt to edit/replace a file.
What is the current *bug* behavior?
-It does not commit the change.
What is the expected *correct* behavior?
-A commit should be created and a merge request created.
Related Tickets:
- [328040](https://gitlab.com/gitlab-org/gitlab/-/issues/328040) -- this is where bug report originated from
- [354031](https://gitlab.com/gitlab-org/gitlab/-/issues/354031)
- [357407](https://gitlab.com/gitlab-org/gitlab/-/issues/357407)
- [357466](https://gitlab.com/gitlab-org/gitlab/-/issues/357466)
<!-- template sourced from https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/issue_templates/Default.md -->
issue