mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
[Fix] Release attachment should use DownloadURL() not Name (#9529)
* Handle if two or more attachments have the same name * previously only the first could be downloaded - now each is downloadable * dos also take care of #6506 (fix was: #6512) * use func DownloadURL() at issue attatchments too
This commit is contained in:
parent
599c0ee75f
commit
261c3a56a2
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue