Skip to content

Commit

Permalink
retain history of header link clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Jan 25, 2021
1 parent 9e99493 commit 9691c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.replaceState(null, null, `#${id}`);
history.pushState(null, null, `#${id}`);
}
});
});
Expand Down

0 comments on commit 9691c41

Please sign in to comment.