let urlWithOutParameters = window.location.protocol + "//" + window.location.origin + window.location.pathname; let urlWithParameters = window.location.href;