Skip to content

Frontend changes to support fully qualified refs on blob and tree view

What does this MR do and why?

Addresses the issue of not being able to browse files when a tag and branch have the same name.

Screenshots or screen recordings

Before After
Screen_Recording_2023-06-28_at_09.35.37.2023-06-28_09_40_37 Screen_Recording_2023-06-28_at_09.37.08.2023-06-28_09_41_11

How to set up and validate locally

  1. Enable the redirect_with_ref_type feature flag
  2. Create a project that has a branch and a tag with the same name
  3. Browse the repository and switch between the tag and branch created in step 2
  4. The correct content should be shown for the selected branch/tag
  5. Navigating from Respository > Branches to the branch created in step 2 should also show the correct commit messages and content

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #20526 (closed)

Edited by Jacques Erasmus

Merge request reports