Skip to content

Fix Permalink and Blame button hash parameter

Nathan Friend requested to merge nfriend-31374-fix-permalink-button into master

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

2020-01-24_16.47.33

Closes #31374 (closed)

Edited by Nathan Friend

Merge request reports