Bug - Web Ide - When a branch has the # Character in it the Web IDE doesn't handle the branch name correctly
### Summary
Bug - Web Ide - When a branch has the # Character in it the Web IDE doesn't handle the branch name correctly
### Steps to reproduce
Create a new branch with the name that includes a # for example "issue-reproduction#-branch-name"
Find or create a file that can be edited with the web ide
### Example Project
https://gitlab.com/edstub207/NMI/blob/issue-reproduction%23-branch-name/blah.md
### What is the current *bug* behaviour?
When editing the file the web ide goes to a branch that doesn't exist
### What is the expected *correct* behaviour?
When editing the file the web ide goes to the branch correctly.
### Relevant logs and/or screenshots

### Output of checks
The issue can be reproduced on Gitlab.com
issue