Navigating directly to an issue jumps to the comment box

Summary

Opening an issue link (with no url fragements) jumps to the comment box.

Steps to reproduce

  1. Go to #362661 (closed) (I used chrome)
  2. Your cursor jumps to the comment box at the bottom of the page.

What is the current bug behavior?

Navigating directly to an issue link now jumps to the comment box.

What is the expected correct behavior?

Focus is reset on page load and would traverse through the DOM, starting at the top, unless explicitly set with an in-page anchor.

Relevant logs and/or screenshots

Screen_Recording_2023-03-20_at_9.44.18_AM

Output of checks

This bug happens on GitLab.com

Possible fixes

Edited by Jeremy Elder