JavaScript redirige con argumentos de URL adicionales

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