I have a question to Divi users / Programmers on how do I unhide the URL Hash change. Divi has a smooth scroll to anchor script already, which for me works perfect, but it does not update the URL Bar with the "#" and anchor name.
My additional script which I found on the internet in my JS File which changes the URL Hash, but makes the window to scroll down again:
$("#main-header a").on("click" , function (event) {
if(window.location.hash != this.hash) {
event.preventDefault();
window.location.hash = this.hash;
}
});
Is there any workaround in the original Divi JS smooth scroll to anchor, which also updates the URL on link click and doesn't destroy the original animation etc.?