vmalert: remove extra / from path in WEB interface (#1717)

The extra `/` may cause issues when additional path prefixes
are configured. Also, removing it makes it consistent
with the rest of declarations.

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2021-10-18 15:12:47 +03:00 committed by Aliaksandr Valialkin
parent 93d4ef1239
commit 44a88b7458
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -32,9 +32,9 @@ func initLinks() {
{path.Join(pathPrefix, "-/reload"), "reload configuration"},
}
navItems = []tpl.NavItem{
{Name: "vmalert", Url: path.Join(pathPrefix, "/")},
{Name: "vmalert", Url: pathPrefix},
{Name: "Groups", Url: path.Join(pathPrefix, "groups")},
{Name: "Alerts", Url: path.Join(pathPrefix, "/alerts")},
{Name: "Alerts", Url: path.Join(pathPrefix, "alerts")},
{Name: "Docs", Url: "https://docs.victoriametrics.com/vmalert.html"},
}
}