history.pushState(null, null, "{:U('index')}"); window.onpopstate = function (event) { window.location.href="{:U('index')}"; };