Or instead of parsing it manually, the URL interface could be used - including modifying the query string with the URLSearchParams get
method on the URL.searchParams
property and the href
property (or the ``toString()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/toStringtoString()
method) method).