JS Obtenha toda a corda de consulta
const urlSearchParams = new URLSearchParams(window.location.search);
const params = Object.fromEntries(urlSearchParams.entries());
Helpful Hyena