Closed
Description
Gitea Version
1.16.0+dev-670-gc7e23401a
Git Version
2.34
Operating System
windows
How are you running Gitea?
windows service
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Description
reports on the dashboard indicate that some parts are clickable
eeyrjmr pushed to some_branch at eeyrjmr/test_issues
However the branch url points to https://try.gitea.io/some_branch instead of https://try.gitea.io/eeyrjmr/test_issues/src/branch/some_branch ie the base url does not consider the user/organisation + repository
Screenshots
No response
Activity
jpraet commentedon Dec 12, 2021
In #17551
commit_repo = pushed to <a href="%[1]s/src/branch/%[2]s">%[3]s</a> at <a href="%[1]s">%[4]s</a>
got replaced by
commit_repo = pushed to <a href="%[2]s">%[3]s</a> at <a href="%[1]s">%[4]s</a>
in locale_en-US.ini, but this change was not reflected in feeds.tmpl.
Other types of links in the action feed are simarly broken.
I also wonder about the impact of such structural changes to the parameters passed to existing localized messages: these will need to be updated in all other supported languages, otherwise they will have broken links as well?
zeripath commentedon Dec 14, 2021
We absolutely should not have translators responsible for building URLs. It's bad enough that there's HTML in there but building URLs is not a good idea.
That's why this was changed.
Crowdin notices the change and translators update so this is not a problem.
zeripath commentedon Dec 14, 2021
Ok so it looks like there were a few places missed in feeds.tmpl where the branch URL needs to be correctly formed. Would be a quick pr to fix
Adjust branch links in feeds.tmpl - Fix go-gitea#17943
Prevent hang in git cat-file if repository is not a valid repository …
Prevent hang in git cat-file if repository is not a valid repository …