The fix of JENKINS-29383 introduced this issue when <a href="#" onclick="..." was used. Remove the href attribute entirely.
Failure summary does not work when special chars are present in path
Code changed in jenkins
User: Oliver Gondža
[FIXED JENKINS-29613] Failure summary jumps to the top of the page when expanded/collapsed