Maybe helpful in some cases, if you want to make the hashes work on first page impression ( i.e. calling https://mypage.com/#about ), you can get the hash from the url like this:
var hash = window.location.hash;
if(hash) {
var left = $(hash)[0].offsetLeft;
gsap.to("html", { scrollTo: left, duration: 1});
}