app/vmselect: typo fixes in code comments

This commit is contained in:
Aliaksandr Valialkin 2022-12-06 20:58:16 -08:00
parent 6680a17fec
commit a257c5fe53
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -364,6 +364,9 @@ func selectHandler(qt *querytracer.Tracer, startTime time.Time, w http.ResponseW
}
if p.Suffix == "prometheus/vmalert" {
// vmalert access via incomplete url without `/` in the end. Redirect to complete url.
// Use relative redirect, since the hostname and path prefix may be incorrect if VictoriaMetrics
// is hidden behind vmauth or similar proxy.
path := "../" + p.Suffix + "/"
httpserver.Redirect(w, path)
return true