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
var url = 'https://smart.XXX.it/default.asp/s4'; var var2 = url.replace('default.asp/', ''); console.log(var2); //Output https://smart.XXX.it/s4