Files containing hashes are not properly url escaped in the file view and the WebIDE
Summary
Files containing hashes are not properly url escaped in the file view and the WebIDE.
Steps to reproduce
-
Create a folder named "src".
-
Add a file named "#test#myfile.txt".
-
Commit
-
Try to browse the file contents or click on the file in the WebIDE.
Example Project
https://gitlab.com/sbuehl/issue-hash-in-filename/tree/master/src
Try to view "#test#myfile.txt".
What is the current bug behavior?
URL escapes as "src#test%23myfile.txt" instead of "src/%23test%23myfile.txt" - manually changing the URL shows the correct page.
What is the expected correct behavior?
URL should be escaped as "src/%23test%23myfile.txt" to allow interaction
Results of GitLab environment info
gitlab.com hosted - today.
Results of GitLab application Check
gitlab.com hosted - today.