diff --git a/app/vmalert/utils/links.go b/app/vmalert/utils/links.go index 00a9d3a62..870c42064 100644 --- a/app/vmalert/utils/links.go +++ b/app/vmalert/utils/links.go @@ -4,6 +4,7 @@ import "strings" const prefix = "/vmalert/" +// Prefix returns "/vmalert/" prefix if it is missing in the path. func Prefix(path string) string { if strings.HasPrefix(path, prefix) { return ""