Skip to content

Commit

Permalink
Use relative paths for assets in template.html if no pathPrefix is set
Browse files Browse the repository at this point in the history
Signed-off-by: Simon <[email protected]>
  • Loading branch information
simonfrey committed Mar 5, 2021
1 parent 007ba87 commit ef6c6fe
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 ef6c6fe

Please sign in to comment.