-
Hi, guys. I'm trying to replace "+" with "%20" because urlquery function in go templates replaces space with "+". If anyone knows how to make it work or maybe knows some workaround for space replacement with +, please help.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the fix for this: I had to escape "+" symbol for reReplaceAll function. So it works like this |
Beta Was this translation helpful? Give feedback.
I found the fix for this: I had to escape "+" symbol for reReplaceAll function. So it works like this
{{ urlquery .Labels.alertname | reReplaceAll "\\+" "%20" }}
.