I am not so into JavaScript and I have the following problem.
I have a string like this:
https://smart.XXX.it/default.asp/s4
into a var
You could .split() the url like such:
.split()
let url = 'https://smart.XXX.it/default.asp/s4'.split('/default.asp/').join('/'); console.log(url);