Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Commit

Permalink
Fixes slatedocs#909, reverts "don't pushState", using replaceState in…
Browse files Browse the repository at this point in the history
…stead (slatedocs#949)

Partially reverts 95f924f.
  • Loading branch information
anfedorov authored and floriandejonckheere committed Jul 21, 2018
1 parent 9b3c315 commit 7bcc068
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 7bcc068

Please sign in to comment.