JavaScript lenkt mit zusätzlichen URL -Argumenten um

if (window.location.search === '') {
  window.location = window.location.origin + '?arg=1'
} else {
  window.location = window.location.origin + window.location.search + '&arg=1'
}