[js] Fixed scrolling to sections
This commit is contained in:
parent
2a0e8f3600
commit
392ecaa3c7
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ function openSection(section) {
|
|||
if (contentSection) {
|
||||
contentSection.className += " openSection";
|
||||
}
|
||||
location.replace('#' + section.id);
|
||||
window.history.replaceState({},"", window.location.href.split("#")[0] + '#' + section.id);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue