Improve web ide / edit button handling of forks
<!--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=421808) </details> <!--IssueSummary end--> In https://gitlab.com/gitlab-org/gitlab/-/merge_requests/122452 we improved the logic used to identify a fork when clicking the WebIDE button from the root of a project repository that you do not have write access to. We need to apply this same logic when browsing files/folders/branches in the repository. In https://gitlab.com/gitlab-org/gitlab/-/issues/419719 we intend to do similar with the "fork" button.
issue