I have a url that looks something like this:
https://url.com/a b c
which is as expected. When the user clicks on this however, it redirects to the wrong link because the link actually has underscores instead of spaces in its url. is there any way to edit this url so that right before the url is clicked, the spaces turn into underscores? The url would look like so:
https://url.com/a_b_c
when the user clicks it instead of what was above. Below is my attempt:
<a target="_blank" style="font-size: 9px" href="https://url.com/{{label}}">[Details]</a>
where label
is equal to a b c
. I tried the following:
<a target="_blank" style="font-size: 9px" href="https://url.com/{{label.replace(" ", "_")}}">[Details]</a>
so that a b c
would turn into a_b_c
but that didn't seem to work because the curly braces can't actually execute the replace
function. Any help would be appreciated. If possible, I would also want to append some text to the end of this newly replaced label so it would look like: a_b_c_new_text
Thanks!