-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Closed
Description
Proposal
My alerts' annotations have URLs that contains label values which have characters which need to be url escaped. Here an alert as seen in incident.io:
diff --git a/template/template.go b/template/template.go
index 295380cc8..d74cefe98 100644
--- a/template/template.go
+++ b/template/template.go
@@ -288,6 +288,9 @@ func NewTemplateExpander(
}
return float64(time.Duration(v)) / float64(time.Second), nil
},
+ "urlQueryEscape": func(s string) string {
+ return url.QueryEscape(s)
+ },
},
options: options,
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels