Skip to content
Advertisement

Tag: urlsearchparams

Reading the parameter values off the current URL on page load

I realize retrieving search params from the URL is a commonly asked Question but I am running into an issue with using URLSearchParams(window.location.search) because I believe it is searching for a ? and my url contains & as separators between values. my url will look something like this http://localhost:8080/monitor/patientName=Courtney+Patient&pageSize=50 My Goal is to pull out the searchParams in the url

Advertisement