summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/public/public.go1
-rw-r--r--modules/setting/picture.go2
-rw-r--r--modules/setting/setting.go4
-rw-r--r--modules/templates/helper.go2
4 files changed, 4 insertions, 5 deletions
diff --git a/modules/public/public.go b/modules/public/public.go
index 14525cfa0e..c68f980352 100644
--- a/modules/public/public.go
+++ b/modules/public/public.go
@@ -32,7 +32,6 @@ var KnownPublicEntries = []string{
"js",
"serviceworker.js",
"vendor",
- "favicon.ico",
}
// Custom implements the static handler for serving custom assets.
diff --git a/modules/setting/picture.go b/modules/setting/picture.go
index fa97245aa1..415552d7ce 100644
--- a/modules/setting/picture.go
+++ b/modules/setting/picture.go
@@ -110,5 +110,5 @@ func newRepoAvatarService() {
RepoAvatar.Storage = getStorage("repo-avatars", storageType, repoAvatarSec)
RepoAvatar.Fallback = sec.Key("REPOSITORY_AVATAR_FALLBACK").MustString("none")
- RepoAvatar.FallbackImage = sec.Key("REPOSITORY_AVATAR_FALLBACK_IMAGE").MustString("/img/repo_default.png")
+ RepoAvatar.FallbackImage = sec.Key("REPOSITORY_AVATAR_FALLBACK_IMAGE").MustString("/assets/img/repo_default.png")
}
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 7963776fd0..aef0d86700 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -1139,12 +1139,12 @@ func MakeManifestData(appName string, appURL string, absoluteAssetURL string) []
StartURL: appURL,
Icons: []manifestIcon{
{
- Src: absoluteAssetURL + "/img/logo.png",
+ Src: absoluteAssetURL + "/assets/img/logo.png",
Type: "image/png",
Sizes: "512x512",
},
{
- Src: absoluteAssetURL + "/img/logo.svg",
+ Src: absoluteAssetURL + "/assets/img/logo.svg",
Type: "image/svg+xml",
Sizes: "512x512",
},
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 7b175bfab3..8f1362afc4 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -61,7 +61,7 @@ func NewFuncMap() []template.FuncMap {
return setting.AppSubURL
},
"StaticUrlPrefix": func() string {
- return setting.StaticURLPrefix
+ return setting.StaticURLPrefix + "/assets"
},
"AppUrl": func() string {
return setting.AppURL