Error 404 - wrong related link in issue page #3896

Closed
opened 2025-11-02 05:29:54 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @mbarinc on GitHub (Sep 4, 2019).

Description

If I open a Issue and relate it to a tag, when I try to go to this specific tag from the issue page by clicking the link near the issue name, I have an 404 error. This because in the url there is "branch" instead of "tag".

No errors if I create an Issue and relate it to a branch.

To reproduce the error:

  1. start from https://try.gitea.io/mbarinc/test/issues
  2. click on "tag_001"
Originally created by @mbarinc on GitHub (Sep 4, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.10.0+dev-145 - Git version: 2.20 - Operating system: RedHat 7.3 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (https://try.gitea.io/mbarinc/test/src/branch/tag_001) - [ ] No - [ ] Not relevant - Log gist: ## Description If I open a Issue and relate it to a tag, when I try to go to this specific tag from the issue page by clicking the link near the issue name, I have an 404 error. This because in the url there is "branch" instead of "tag". No errors if I create an Issue and relate it to a branch. To reproduce the error: 1. start from https://try.gitea.io/mbarinc/test/issues 2. click on "tag_001"
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 05:29:54 -06:00
Author
Owner

@sapk commented on GitHub (Sep 4, 2019):

The lines to change are here : 13388258a4/templates/repo/issue/list.tmpl (L220-L222)

We should check the ref type to display a branch link or tag link.

@sapk commented on GitHub (Sep 4, 2019): The lines to change are here : https://github.com/go-gitea/gitea/blob/13388258a4ef1593784e8daf97506575cc284f61/templates/repo/issue/list.tmpl#L220-L222 We should check the ref type to display a branch link or tag link.
Author
Owner

@vijfhoek commented on GitHub (Oct 29, 2019):

I would like to give this a try as a first issue

@vijfhoek commented on GitHub (Oct 29, 2019): I would like to give this a try as a first issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3896