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

(cherry picked from commit b8b6182)
  • Loading branch information
bgranvea authored and aocenas committed Jan 15, 2020
1 parent 5404415 commit 89f040f
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 89f040f

Please sign in to comment.