Skip to content

Commit

Permalink
Merge pull request #390 from simonfrey/master
Browse files Browse the repository at this point in the history
Use relative paths for assets in template.html if no pathPrefix is set
  • Loading branch information
beorn7 authored Mar 5, 2021
2 parents 007ba87 + ef6c6fe commit f110b7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ func Status(
"goVersion": version.GoVersion,
}

if pathPrefix == "" {
pathPrefix = "."
}

d := &data{
MetricGroups: ms.GetMetricFamiliesMap(),
BuildInfo: buildInfo,
Expand Down

0 comments on commit f110b7c

Please sign in to comment.