我的网站位于http://visualise.ca/,当您通过单击缩略图加载帖子时,它将使用 ajax 在页面内加载帖子。当您关闭帖子时,它使用此代码将 url 更改回http://visualise.ca/而不重新加载页面:
$("#close").live("click", function(event) {
$("#board").fadeOut("slow");
$("#board-wrapper").slideUp("slow");
$("html,body").delay(1000).animate({scrollTop: 0}, 300);
window.location.hash = "";
window.history.pushState(null,null,site_url+"/");
return false;
});
但在 IE8 中,它将它改回http://visualise.ca/#而不是http://visualise.ca/。有没有办法纠正这个问题并确保将其更改为http://visualise.ca/?