Cross-referencing issues from other repos results in URLs pointing to wrong issue tracker #10964

Open
opened 2025-11-02 09:23:28 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @sebthom on GitHub (Jun 5, 2023).

Description

Lets say we have these repos in different orgs:

  • org1/repo1
  • org2/repo2

In a pull request to org1/repo1 we want to reference an issue located in the issue tracker of org2/repo2 in the PR description using the short hand syntax org2/repo2#100. The rendered HTML URL rendered however wrongly points to the issue tracker in org1/repo1 instead of org2/repo2: https://<gitea_host>/org1/repo1/issues/100

Interestingly referencing a PR of the other repo works as expected. E.g.
org2/repo2!200 will be rendered as https://<gitea_host>/org2/repo2/pulls/200

Gitea Version

1.19.3

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?

Dockerized

Database

SQLite

Originally created by @sebthom on GitHub (Jun 5, 2023). ### Description Lets say we have these repos in different orgs: - org1/repo1 - org2/repo2 In a pull request to **org1/repo1** we want to reference an issue located in the issue tracker of **org2/repo2** in the PR description using the short hand syntax `org2/repo2#100`. The rendered HTML URL rendered however wrongly points to the issue tracker in **org1/repo1** instead of **org2/repo2**: `https://<gitea_host>/org1/repo1/issues/100` Interestingly referencing a PR of the other repo works as expected. E.g. `org2/repo2!200` will be rendered as `https://<gitea_host>/org2/repo2/pulls/200` ### Gitea Version 1.19.3 ### 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? Dockerized ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 09:23:28 -06:00
Author
Owner

@sebthom commented on GitHub (Jun 5, 2023):

Same issue when referencing issues from other org/repos in e.g. CHANGELOG.md files using the syntax <org><repo>#<issue_id>

@sebthom commented on GitHub (Jun 5, 2023): Same issue when referencing issues from other org/repos in e.g. CHANGELOG.md files using the syntax `<org><repo>#<issue_id>`
Author
Owner

@Zettat123 commented on GitHub (Aug 31, 2023):

Hi @sebthom, I cannot reproduce this bug in v1.19.3 or the main branch. If possible, could you please provide more detailed steps to reproduce?

@Zettat123 commented on GitHub (Aug 31, 2023): Hi @sebthom, I cannot reproduce this bug in v1.19.3 or the main branch. If possible, could you please provide more detailed steps to reproduce?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10964