incalculable-scientist-18707
10/02/2021, 10:26 PMwindow.location.reload(true); to the end of
function restoreHistory(path) {
saveHistory();
path = path || location.pathname+location.search;
var cached = getCachedHistory(path);
if (cached) {
var fragment = makeFragment(cached.content);
var historyElement = getHistoryElement();
var settleInfo = makeSettleInfo(historyElement);
swapInnerHTML(historyElement, fragment, settleInfo)
settleImmediately(settleInfo.tasks);
document.title = cached.title;
window.scrollTo(0, cached.scroll);
currentPathForHistory = path;
triggerEvent(getDocument().body, "htmx:historyRestore", {path:path});
window.location.reload(true); //new line