diff options
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r-- | routers/repo/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 969f96bfba..d44812729f 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -426,7 +426,7 @@ func RedirectDownload(ctx *context.Context) { return } if att != nil { - ctx.Redirect(setting.AppSubURL + "/attachments/" + att.UUID) + ctx.Redirect(att.DownloadURL()) return } } |