Remove the anchor you’re going to navigate to, then use approach #2? Since there’s no anchor, setting the hash shouldn’t scroll the page.
Remove the anchor you’re going to navigate to, then use approach #2? Since there’s no anchor, setting the hash shouldn’t scroll the page.