Anchor links are not working properly

When I click from the footer it does open the page on the correct spot initially but then it returns me to the top of the page. The same issue is happening with the rest of the IDs on that page too. Strangely enough, when I refresh that page with the same link (while on the page where the ID is) it brings me down to that section correcctly.

To my knowledge all the IDs are unique. There is no other interference from plugin etc.