I want to get the ref code from the URL, http://localhost:3000/?ref=2926
I try with const session = ${window.location.href}; it gets the full current URL and tries to use split() the pathname but it didn't work, how to get only the ref code from the URL.