js obtiennent la requête param
const queryString = window.location.search;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');
MCRC
const queryString = window.location.search;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');
const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');
const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const page_type = urlParams.get('page_type')
console.log(page_type);
const queryString = window.location.href;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');
// Get query string from url
const href = 'http://localhost:8080/sign-up?ref=devjohndoe'
const referral_token = new URL(href).search.split('?ref=').pop();
console.log(referral_token);