add replaceState for ?debug url