aboutsummaryrefslogtreecommitdiffstats
path: root/templates/mail/release.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-03 22:43:30 +0800
committerGitHub <noreply@github.com>2023-03-03 22:43:30 +0800
commit807e8e280c02b4e9082899c7e364731b44d09143 (patch)
treedae24cf8f54b8fa133111dd256256c021f8728e4 /templates/mail/release.tmpl
parent2f49b55c193faf7a1ab59d91fc707f2010143483 (diff)
downloadgitea-807e8e280c02b4e9082899c7e364731b44d09143.tar.gz
gitea-807e8e280c02b4e9082899c7e364731b44d09143.zip
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)
Diffstat (limited to 'templates/mail/release.tmpl')
-rw-r--r--templates/mail/release.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mail/release.tmpl b/templates/mail/release.tmpl
index 4250433523..b2acdce8b2 100644
--- a/templates/mail/release.tmpl
+++ b/templates/mail/release.tmpl
@@ -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}}