Fix commits ref switcher
What does this MR do and why?
Fixes the ref switcher on the commits page when selecting a branch/ref containing special characters.
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- Create a branch containing a special character (
branch-#-hash
) - Navigate to Project > Commits
- Select the branch created in Step 1
- The page should load/work as expected
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jacques Erasmus