Using a reference in a TOC reloads the page without moving to reference

Funnily this used to work mid-late last year. Somewhere along the way it broke.