We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e87576b commit e823e33Copy full SHA for e823e33
modules/setting/server.go
@@ -15,7 +15,6 @@ import (
15
16
"code.gitea.io/gitea/modules/json"
17
"code.gitea.io/gitea/modules/log"
18
- "code.gitea.io/gitea/modules/util"
19
)
20
21
// Scheme describes protocol types
@@ -160,7 +159,11 @@ func MakeAbsoluteAssetURL(appURL, staticURLPrefix string) string {
160
159
}
161
162
// StaticURLPrefix is just a path
163
- return util.URLJoin(appURL, strings.TrimSuffix(staticURLPrefix, "/"))
+ base, err := url.Parse(appURL)
+ if err != nil {
164
+ log.Fatal("Unable to parse url: %v", err)
165
+ }
166
+ return base.ResolveReference(parsedPrefix).String()
167
168
169
return strings.TrimSuffix(staticURLPrefix, "/")
0 commit comments