-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome tries to load .../gitea/gitea/img/logo.png, Firefox loads .../gitea/img/logo.png #14422
Comments
The only place where we still use the PNG should be the meta tag Edit: Actually PNG is also used in manifest. Probably coming from there if you could post the base64 content in the manifest tag in |
I see these two pngs
The SVG looks similar:
Maybe for the PNG, og:url and og:image are contatenated somewhere somehow?
|
The manifest looks like this:
or:
|
Thanks. Pretty certain it's a bug in the manifest generation. |
I looked at modules/setting/setting.go and it seems that MakeAbsoluteAssetURL is called with |
@uli-heller Could you try this patch diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index be7ec16e1..1f05bd7b6 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -1070,12 +1070,7 @@ func MakeAbsoluteAssetURL(appURL string, staticURLPrefix string) string {
}
if err == nil && parsedPrefix.Hostname() == "" {
- if staticURLPrefix == "" {
- return strings.TrimSuffix(appURL, "/")
- }
-
- // StaticURLPrefix is just a path
- return strings.TrimSuffix(appURL, "/") + strings.TrimSuffix(staticURLPrefix, "/")
+ return strings.TrimSuffix(appURL, "/")
}
return strings.TrimSuffix(staticURLPrefix, "/") |
@lunny Your patch looks good!
|
MakeAbsoluteAssetURL should just url join the static url prefix on to appurl if it is not an absolute path - this is because StaticURLPrefix is an absolute prefix not a relative prefix to the app sub url. Fix go-gitea#14422 Signed-off-by: Andrew Thornton <art27@cantab.net>
[x]
):Description
After clicking on the upper left logo, chrome tries to load several urls. There are two logo urls:
For firefox the error doesn't happen. Firefox does not try to load the PNG logo.
Screenshots
Chrome:
Firefox:
The text was updated successfully, but these errors were encountered: