阻止浏览器保存 URL

Prevent Browser from saving an URL

我的网站在 URL 路径 (site.com/Loaded!/forums) 的开头显示 "Loaded!" 两秒钟而不重新加载页面

问题是浏览器当前正在历史记录中保存"fake" link:

有没有办法阻止浏览器保存这个link?

您的页面有代码:

 if (_timer) clearInterval(_timer);
    window.history.pushState('', 'MineLight', "Loaded!/" + Url);
    setTimeout(Back, 2000);

window.history.pushState:

HTML5 introduced the history.pushState() and history.replaceState() methods, which allow you to add and modify history entries, respectively. These methods work in conjunction with the window.onpopstate event.

你必须删除它。

Adding and modifying history entries