Skip to content

Commit

Permalink
Rendering: Fix panel PNG rendering when using sub url & serve_from_su…
Browse files Browse the repository at this point in the history
…b_path = true (#21306)

* Rendering: fix dashboard rendering when using sub url

* rollback on render.go: no need to add sub-path
  • Loading branch information
bgranvea authored and torkelo committed Jan 6, 2020
1 parent 1ba072c commit b8b6182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (hs *HTTPServer) setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, er
appSubURL := setting.AppSubUrl

// special case when doing localhost call from phantomjs
if c.IsRenderCall {
if c.IsRenderCall && !hs.Cfg.ServeFromSubPath {
appURL = fmt.Sprintf("%s://localhost:%s", setting.Protocol, setting.HttpPort)
appSubURL = ""
settings["appSubUrl"] = ""
Expand Down

0 comments on commit b8b6182

Please sign in to comment.