Open WebIDE with the correct ref when ref is ambiguous
Summary
In !122145 (merged) we fixed issues around browsing the repository when the selected ref is ambiguous (branch and tag name are the same).
We need to implement a similar fix for the WebIDE when navigating from the repository blob view.
Steps to reproduce
- Create a project that has a branch and a tag with the same name
- Browse the repository and select the tag created in step one
- Open a file
- Click on the "Open in Web IDE" button
- The file is opened in the Web IDE with the incorrect ref
Example Project
https://gitlab.com/jerasmus/jerasmus-test-project/-/blob/test/index.js?ref_type=tags
What is the current bug behavior?
The file is opened in the Web IDE with the incorrect ref when ?ref_type=tags
is present in the URL.
What is the expected correct behavior?
The file is opened in the Web IDE with the tag ref when navigating from the repository view.
Relevant logs and/or screenshots
Edited by Jacques Erasmus