I would like to achieve the following:
I have a URL: https://www.example.com/Place/Name.html?randomtext
I need to return "Name" only on outgoing links.
I thought it would work by doing the following:
function() {
if ({{outgoing link}})
var Name= {{Click URL}};
return Name.split("/")[2];
return Name.split("?")[0];
}
I already managed to get "place" by doing:
function() {
if ({{outgoing link}})
var Name= {{Click URL}};
return Name.split("/")[2];