Skip to content

Commit 08c17d3

Browse files
committed
Percent-encode the double-quotes in silence link.
The double-quote character is not a valid part of URL (see RFC 3986) and thus shall be percent-encoded. Signed-off-by: Milan Plzik <[email protected]>
1 parent 811ccb0 commit 08c17d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus-ksonnet/lib/files/alertmanager_config.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
{{ .ExternalURL }}/#/silences/new?filter=%7B
1919
{{- range .CommonLabels.SortedPairs -}}
2020
{{- if ne .Name "alertname" -}}
21-
{{- .Name }}%3D"{{- .Value -}}"%2C%20
21+
{{- .Name }}%3D%22{{- .Value -}}%22%2C%20
2222
{{- end -}}
2323
{{- end -}}
24-
alertname%3D"{{ .CommonLabels.alertname }}"%7D
24+
alertname%3D%22{{ .CommonLabels.alertname }}%22%7D
2525
{{- end }}

0 commit comments

Comments
 (0)