Fix Permalink and Blame button hash parameter
What does this MR do?
Fixes the Permalink button (well, technically the script that updates the Permalink button's href) so that it doesn't drop the hash parameter (i.e. #L23) when clicked.
This also fixes the same behavior with the Blame button.
A few feature tests have been added to cover this scenario.
GIF
Closes #31374 (closed)
Edited by Nathan Friend
