Skip to content

Commit

Permalink
Fixes #909, reverts "don't pushState", using replaceState instead (#949)
Browse files Browse the repository at this point in the history
Partially reverts 95f924f.
  • Loading branch information
anfedorov authored and lord committed Feb 8, 2018
1 parent 603d4cd commit 76b06fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/javascripts/app/_toc.js
Expand Up @@ -78,6 +78,9 @@
$best.siblings(tocListSelector).addClass("active");
$toc.find(tocListSelector).filter(":not(.active)").slideUp(150);
$toc.find(tocListSelector).filter(".active").slideDown(150);
if (window.history.replaceState) {
window.history.replaceState(null, "", best);
}
// TODO remove classnames
document.title = joinedTitle.replace(htmlPattern, '');
}
Expand Down

0 comments on commit 76b06fe

Please sign in to comment.