Commit 561a0a29 by Torkel Ödegaard Committed by GitHub

CDN: Fix passing correct prefix to GetContentDeliveryURL (#30777)

parent 27f5d482
...@@ -428,7 +428,7 @@ func (hs *HTTPServer) setIndexViewData(c *models.ReqContext) (*dtos.IndexViewDat ...@@ -428,7 +428,7 @@ func (hs *HTTPServer) setIndexViewData(c *models.ReqContext) (*dtos.IndexViewDat
NavTree: navTree, NavTree: navTree,
Sentry: &hs.Cfg.Sentry, Sentry: &hs.Cfg.Sentry,
Nonce: c.RequestNonce, Nonce: c.RequestNonce,
ContentDeliveryURL: hs.Cfg.GetContentDeliveryURL((hs.License.Edition())), ContentDeliveryURL: hs.Cfg.GetContentDeliveryURL(hs.License.ContentDeliveryPrefix()),
} }
if setting.DisableGravatar { if setting.DisableGravatar {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment