1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-26 12:18:36 +00:00

Revert relative links to absolute links in mail templates (#23267)

Follow #21986 , fix regression.

The mail templates should always use `AppURL` (the full absolute URL)
This commit is contained in:
wxiaoguang
2023-03-03 22:43:30 +08:00
committed by GitHub
parent 2f49b55c19
commit 807e8e280c
3 changed files with 6 additions and 6 deletions

View File

@@ -11,8 +11,8 @@
</head>
{{$release_url := printf "<a href='%s'>%s</a>" (.Release.Link | Escape) (.Release.TagName | Escape)}}
{{$repo_url := printf "<a href='%s'>%s</a>" (.Release.Repo.Link | Escape) (.Release.Repo.FullName | Escape)}}
{{$release_url := printf "<a href='%s'>%s</a>" (.Release.HTMLURL | Escape) (.Release.TagName | Escape)}}
{{$repo_url := printf "<a href='%s'>%s</a>" (.Release.Repo.HTMLURL | Escape) (.Release.Repo.FullName | Escape)}}
<body>
<p>
{{.locale.Tr "mail.release.new.text" .Release.Publisher.Name $release_url $repo_url | Str2html}}