fix: Fix URL encoding for refs containing special characters
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Fix 404 error when clicking tags with special characters in MR page
Users encounter 404 errors when clicking on tags that contain special characters (such as "C#") from Merge Request pages
Root cause: The refs_list.vue
file doesn't properly encode the ref parameter in the URL construction
References
Screenshots or screen recordings
6e7f1be2d9aab5bf508f6de32207c0a3
How to set up and validate locally
- Create a project with commits
- Create a tag with special characters (e.g. "C#")
- View commit details in MR page
- Click the tag - results in 404
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by 🤖 GitLab Bot 🤖