Rudchyk
1/24/2018 - 10:22 AM

Replace State With URL

function replaceStateWithURL() {
  var url = ('https:' == document.location.protocol) ? 'https://' : 'http://';
  url += document.location.hostname + document.location.pathname;
  history.replaceState(null, null, url);
}