From ec92565f234deb75ea8df0c30a8772c4cd72bc2d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 7 Aug 2016 10:13:05 -0700 Subject: #3393 fix missing sub-url prefix in relative avatar link --- modules/setting/setting.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/setting/setting.go') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 6581efe4..f59aa088 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -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, "/") -- cgit v1.2.3