JS obtenga toda la cadena de consulta
const urlSearchParams = new URLSearchParams(window.location.search);
const params = Object.fromEntries(urlSearchParams.entries());
Helpful Hyena