Board Thread:Support Requests - Getting Technical/@comment-979971-20190514234502

I'm in the process of converting this page into using tabs to lessen the amount of scrolling needed. This is what I have now: https://jojo.fandom.com/wiki/Template:Test4

Thanks to User:Fngplg, I made it so the tabs could be linked to with the code here: https://jojo.fandom.com/wiki/MediaWiki:Common.js (hasn't been reviewed at the moment, but it works when I tested)

My problem is that the page anchors don't work when opening a link. For example, if you click https://jojo.fandom.com/wiki/Template:Test4#Fisherman the tab correctly changes to Fisherman, but the page doesn't scroll down to the Fisherman. Is there any way to make the anchors work along with the tab change when clicking a link? Thanks. 