L(window.location);
        url.search = params;

        // get URL without params
        const location = new URL(window.location); 

        const paramsFiltered = params
          .split("&")
          .filter((param) => {
            // split each param into key and value
            const [key, value] = param.split("=");
            // filter out empty values
            return value;
            })
          .filter((param) => {
              // filter out alert fields; they are parsed separately
  