Description
"Go to file" doesn't work for branches containing a #.
On Gitea 1.21.8 it results in

It also fails on try:

Gitea Version
1.21.8
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker
Database
None