Fix encoding for file tree browser paths with special characters
What does this MR do and why?
Ensure file and directory paths containing spaces and special characters are properly encoded when generating router paths
References
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Create a new branch with special characters in the name (e.g.,
!@#$%/)(&()) - In this branch, create a directory with special characters (e.g.,
@#$%^&*rthsi^%) - Inside that directory, create files with special characters in their names (e.g.,
test_*^%.js). - Navigate to Repository > Files in the GitLab UI
- Browse to the directory with special characters
- Click on files with special characters in the file tree browser (left sidebar)
- Expected: Files should load correctly
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.
Related to #581015 (closed)
Edited by Jacques Erasmus


