mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
add /assets
as root dir of public files (#15219)
* add `/assets` as root dir of public files Signed-off-by: a1012112796 <1012112796@qq.com> * move serviceworker.js * make fmt * fix some link * fix test * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
@@ -32,7 +32,7 @@ func DefaultAvatarLink() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
u.Path = path.Join(u.Path, "/img/avatar_default.png")
|
||||
u.Path = path.Join(u.Path, "/assets/img/avatar_default.png")
|
||||
return u.String()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user