mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-11 15:04:02 +09:00
#3393 fix missing sub-url prefix in relative avatar link
This commit is contained in:
1 parent
2772791fda
commit
ec92565f23
8 files changed
+32
-27
No files matched your search
@@ -334,6 +334,7 @@ func NewContext() {
|
||||
log.Fatal(4, "Invalid ROOT_URL '%s': %s", AppUrl, err)
|
||||
}
|
||||
// Suburl should start with '/' and end without '/', such as '/{subpath}'.
|
||||
// This value is empty if site does not have sub-url.
|
||||
AppSubUrl = strings.TrimSuffix(url.Path, "/")
|
||||
AppSubUrlDepth = strings.Count(AppSubUrl, "/")
|
||||
|
||||
|
||||
Reference in new issue
Block a user