"Go to file" doesn't work for branches containing a # #12716

Closed
opened 2025-11-02 10:18:57 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @jpraet on GitHub (Mar 23, 2024).

Description

"Go to file" doesn't work for branches containing a #.

On Gitea 1.21.8 it results in

image

It also fails on try:

image

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

Originally created by @jpraet on GitHub (Mar 23, 2024). ### Description "Go to file" doesn't work for branches containing a #. On Gitea 1.21.8 it results in ![image](https://github.com/go-gitea/gitea/assets/2212615/9988acd5-c1b6-433f-966a-85a11267ccde) It also fails on try: ![image](https://github.com/go-gitea/gitea/assets/2212615/36fe7086-5888-4bcb-bb73-30ee889bcbdd) ### 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
GiteaMirror added the type/bug label 2025-11-02 10:18:57 -06:00
Author
Owner

@silverwind commented on GitHub (Mar 23, 2024):

Link to example repo?

@silverwind commented on GitHub (Mar 23, 2024): Link to example repo?
Author
Owner

@jpraet commented on GitHub (Mar 23, 2024):

https://try.gitea.io/jpraet/test/src/branch/%23test

@jpraet commented on GitHub (Mar 23, 2024): https://try.gitea.io/jpraet/test/src/branch/%23test
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12716