README Image not found on branches with "#" in their name
Summary
When adding a reference to a local image to the README file, if the branch has #
symbol in it's name then the image is not found on the rendered markdown.
Steps to reproduce
I'm not sure if this applies only to the CE version I'm using at university, since in GitLab seems to work fine, but it would be:
- Create a new Repo.
- Create a branch with # in its name (ex:
issue#32
). - Add an image to the repo.
- Reference this image on the README file.
What is the current bug behavior?
What is the expected correct behavior?
For the image to be rendered.
Relevant logs and/or screenshots
Analyzing the URL it tries to find the image in the one that works has raw/branchName
in it, while on a branch with # on it's name, the url has tree/
instead.