retain history of header link clicks

close: #196
This commit is contained in:
Aditya Telange 2021-01-25 21:48:15 +05:30
parent 9e99493e69
commit 9691c41983
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.replaceState(null, null, `#${id}`);
history.pushState(null, null, `#${id}`);
}
});
});