Thank you for confirming that. I've got this in place and working for the moment, however it's poor practice to click-jack a link at all, so I may switch to a button.
document.querySelectorAll("a[href^='#']").forEach((a) => {
a.addEventListener("click", (e) => {
e.preventDefault();
ScrollSmoother.get().scrollTo(a.hash, true);
window.history.pushState({}, "", a.hash);
});
});
window.addEventListener("load", (e) => {
if (window.location.hash) {
ScrollSmoother.get().scrollTo(window.location.hash, true);
}
});