diff options
author | zeripath <art27@cantab.net> | 2021-02-19 21:36:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 22:36:43 +0100 |
commit | aa4f9180e4932a9813e898bf3bd9ac91924eeb03 (patch) | |
tree | e181203ffc52a8bb1740fdb81aeeeba5183c42bf /routers/user/notification.go | |
parent | 39aa11f9c0d8aabd188f543d60752e0b8ff95cc5 (diff) | |
download | gitea-aa4f9180e4932a9813e898bf3bd9ac91924eeb03.tar.gz gitea-aa4f9180e4932a9813e898bf3bd9ac91924eeb03.zip |
Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999)
Also removes some unnecessary uses of fmt.Sprintf and adds documentation
strings
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers/user/notification.go')
-rw-r--r-- | routers/user/notification.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/notification.go b/routers/user/notification.go index 34939d1455..523e945db9 100644 --- a/routers/user/notification.go +++ b/routers/user/notification.go @@ -174,7 +174,7 @@ func NotificationStatusPost(c *context.Context) { if c.Written() { return } - c.Data["Link"] = fmt.Sprintf("%snotifications", setting.AppURL) + c.Data["Link"] = setting.AppURL + "notifications" c.HTML(http.StatusOK, tplNotificationDiv) } |