Skip to content

Alert rule templates: reReplaceAll after urlquery #3084

Answered by day4me
day4me asked this question in Q&A
Discussion options

You must be logged in to vote

I found the fix for this: I had to escape "+" symbol for reReplaceAll function. So it works like this {{ urlquery .Labels.alertname | reReplaceAll "\\+" "%20" }} .

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by day4me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant