Skip to content

Commit 76b06fe

Browse files
anfedorovlord
authored andcommitted
Fixes #909, reverts "don't pushState", using replaceState instead (#949)
Partially reverts 95f924f.
1 parent 603d4cd commit 76b06fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/javascripts/app/_toc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
$best.siblings(tocListSelector).addClass("active");
7979
$toc.find(tocListSelector).filter(":not(.active)").slideUp(150);
8080
$toc.find(tocListSelector).filter(".active").slideDown(150);
81+
if (window.history.replaceState) {
82+
window.history.replaceState(null, "", best);
83+
}
8184
// TODO remove classnames
8285
document.title = joinedTitle.replace(htmlPattern, '');
8386
}

0 commit comments

Comments
 (0)