summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJack Hay <jack@allspice.io>2023-08-31 12:26:13 -0400
committerGitHub <noreply@github.com>2023-08-31 16:26:13 +0000
commitc0ab7070e56f1de390d2e7d6a95083137041a572 (patch)
tree8c96429af9c281db82022f61564fa5c7760ddd54 /templates
parent3cae50e841bf1551d82fe9ae3fe5c88627029c24 (diff)
downloadgitea-c0ab7070e56f1de390d2e7d6a95083137041a572.tar.gz
gitea-c0ab7070e56f1de390d2e7d6a95083137041a572.zip
Update team invitation email link (#26550)
Co-authored-by: Kyle D <kdumontnu@gmail.com> Co-authored-by: Jonathan Tran <jonnytran@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/mail/team_invite.tmpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/mail/team_invite.tmpl b/templates/mail/team_invite.tmpl
index 8357895265..d21b7843ec 100644
--- a/templates/mail/team_invite.tmpl
+++ b/templates/mail/team_invite.tmpl
@@ -4,10 +4,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
</head>
-{{$invite_url := printf "%sorg/invite/%s" AppUrl (QueryEscape .Invite.Token)}}
<body>
<p>{{.locale.Tr "mail.team_invite.text_1" (DotEscape .Inviter.DisplayName) (DotEscape .Team.Name) (DotEscape .Organization.DisplayName) | Str2html}}</p>
- <p>{{.locale.Tr "mail.team_invite.text_2"}}</p><p><a href="{{$invite_url}}">{{$invite_url}}</a></p>
+ <p>{{.locale.Tr "mail.team_invite.text_2"}}</p><p><a href="{{.InviteURL}}">{{.InviteURL}}</a></p>
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
<p>{{.locale.Tr "mail.team_invite.text_3" .Invite.Email}}</p>