Are you wanting to remove the slashes from the entire pathname? e.g. /localhost/example/author/admin/
Or do you want to remove the leading and trailing slashes of each pathname section? e.g. /example/
If it is the ladder, are you already using the pathname tokenizer extension?
Yes, that's right. The pathname tokenizer splits up the pathname into sections and stores each section in varialbes.
If you would just like to remove the leading and trailing slashes of the utag.data['dom.pathname'], you can add a Set Data Values extension in TiQ to set the new pathname variable to the following:
Here is a full example:
I do not know the details of your use case so if you have any issues with this implementation, let me know the details.