With JavaScript it is easy to get the current URL of the website. You can get the URL with and without parameters. This is how you can do it:
console.log(document.URL); // https://www.bennyn.de/sth/index.html?param=value console.log(window.location.href); // https://www.bennyn.de/sth/index.html?param=value console.log(window.location.href.split('?')[0]); // https://www.bennyn.de/sth/index.html console.log(window.location.pathname); // /index.html |