I'm trying to create an url object using URL
something like:
var url = new URL($(location).attr('href'));
url.searchParams.set('myFirstParam', myFirstParam);
url.searchParams.set('mySecondParam', mySecondParam);
Everything working well, but according to URL Browser compatibility and Can I use the URL is not compatible with Internet Explorer.
Is there any alternative for URL compatible at least with IE11 ?