404 Nginx not found for branch name includes %
Summary
Navigation problems on branch name that contains a "%".
Steps to reproduce
Suppose we have a branch main and we create a new branch from this last one with name WHATYOUWANT%SOMETHINGELSE. The UI redirects you to this branch, the URL contains /-/tree/WHATYOUWANT%25SOMETHINGELSE.
But if you switch to branch main and again to this branch using the select on the UI:
You will be redirect to /-/tree/WHATYOUWANT%SOMETHINGELSE -> nginx 404 (% is not URL encoded)
Possible fixes
URL encoding of branch name
Edited by Anc Pan