Link to user profile in issue list is missing server URL #7702

Closed
opened 2025-11-02 07:34:03 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @steko on GitHub (Aug 17, 2021).

Description

In the issue list, the name of the user who created the issue has a link to the user profile (under the issue title: issue#123 opened 12 hours ago by user). However, the href points to https:// instead of https://<instance.tld>/. This happens both on the user dashboard and the repository issue list. Both are caused by these lines in the issuelist.tmpl file:

274aeb3a9e/templates/shared/issuelist.tmpl (L57-L63)

In the issue page, the same behavior is seen next to the open/closed label.

This seems caused by these lines in view_title.tmpl:

ab77a24f18/templates/repo/issue/view_title.tmpl (L92-L98)

Screenshots

See in the bottom left the URL preview pointing to https://steko instead of https://try.gitea.io/steko
Schermata da 2021-08-17 16-16-37

This is the issue page:
immagine

Originally created by @steko on GitHub (Aug 17, 2021). <!-- 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. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. 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.16.0+dev-116-g274aeb3a9 - Git version: n/a - Operating system: n/a - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) https://try.gitea.io/issues (for logged in users with at least one issue) AND https://try.gitea.io/steko/webhook-test/issues/1 - [ ] No ## Description In the issue list, the name of the user who created the issue has a link to the user profile (under the issue title: issue#123 opened 12 hours ago by user). However, the href points to https://<username> instead of https://<instance.tld>/<username>. This happens both on the user dashboard and the repository issue list. Both are caused by these lines in the `issuelist.tmpl` file: https://github.com/go-gitea/gitea/blob/274aeb3a9e13da47a925eabe0e43ed0b1424d02a/templates/shared/issuelist.tmpl#L57-L63 In the issue page, the same behavior is seen next to the open/closed label. This seems caused by these lines in `view_title.tmpl`: https://github.com/go-gitea/gitea/blob/ab77a24f18ae45248bd6c71778fe3bfacacf864f/templates/repo/issue/view_title.tmpl#L92-L98 ## Screenshots See in the bottom left the URL preview pointing to https://steko instead of https://try.gitea.io/steko ![Schermata da 2021-08-17 16-16-37](https://user-images.githubusercontent.com/40545/129743364-589c21a8-26d6-4b1b-a760-96208d2344ac.png) This is the issue page: ![immagine](https://user-images.githubusercontent.com/40545/129744024-714776d3-3910-49f5-a517-f7139df7e10f.png)
GiteaMirror added the issue/needs-feedback label 2025-11-02 07:34:03 -06:00
Author
Owner

@noerw commented on GitHub (Aug 23, 2021):

I can't reproduce this, also on the try link you provided, probably already fixed?

@noerw commented on GitHub (Aug 23, 2021): I can't reproduce this, also on the try link you provided, probably already fixed?
Author
Owner

@steko commented on GitHub (Aug 23, 2021):

I just checked again on try.gitea.it and I still see the same issue as described, so I wouldn't say it's been fixed.

@steko commented on GitHub (Aug 23, 2021): I just checked again on try.gitea.it and I still see the same issue as described, so I wouldn't say it's been fixed.
Author
Owner

@noerw commented on GitHub (Aug 23, 2021):

the link that gets rendered does not contain a domain section, and as such works correctly for me
image
maybe a browser extension meddles with your links? 🤔

@noerw commented on GitHub (Aug 23, 2021): the link that gets rendered does not contain a domain section, and as such works correctly for me ![image](https://user-images.githubusercontent.com/7880552/130438535-345ff114-d768-4cab-9908-48a6633ff480.png) maybe a browser extension meddles with your links? 🤔
Author
Owner

@steko commented on GitHub (Aug 23, 2021):

Oh no I found the culprit. It's specific to Italian language, the href value is //steko because there's an extra "/" in the translation string. Can I submit a PR directly or do I need to go through Crowdin?

94f529af02/options/locale/locale_it-IT.ini (L1060)

@steko commented on GitHub (Aug 23, 2021): Oh no I found the culprit. It's specific to Italian language, the href value is `//steko` because there's an extra "/" in the translation string. Can I submit a PR directly or do I need to go through Crowdin? https://github.com/go-gitea/gitea/blob/94f529af02e74f5d13fefda48d3ef9db4559f71f/options/locale/locale_it-IT.ini#L1060
Author
Owner

@steko commented on GitHub (Aug 23, 2021):

I submitted a proposal for correcting the translation on Crowdin.

@steko commented on GitHub (Aug 23, 2021): I submitted a proposal for correcting the translation on Crowdin.
Author
Owner

@noerw commented on GitHub (Aug 23, 2021):

Great, I'll close this then

@noerw commented on GitHub (Aug 23, 2021): Great, I'll close this then
Author
Owner

@zeripath commented on GitHub (Aug 23, 2021):

agh we better backport a fix to 1.15

@zeripath commented on GitHub (Aug 23, 2021): agh we better backport a fix to 1.15
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7702