typescript read url parameters
// get all search params (including ?)
const queryString = window.location.search;
// it will look like this: ?product=shirt&color=blue&newuser&size=m
// parse the query string's paramters
const urlParams = new URLSearchParams(queryString);
// To get a parameter simply write something like the follwing
const paramValue = urlParams.get('yourParam');