Skip to content

Allow release blocks to be scrolled to using URL anchor tags

What does this MR do?

Updates the Releases page to allow individual releases to be targeted using a URL anchor. For example, navigating to a URL like http://examle.gitlab.com/user/project/-/releases#v0.4 would scroll the page to the release associated with the git tag v0.4.

The trick is that the releases are loaded asynchronously, so the browser's native anchor scrolling functionality doesn't work. This MR waits until the releases have loaded and uses our scrollToElement utility function to bring the correct release block into view.

Screenshots

Here's an example of a URL that targets the release named "The fourth release", which is based on a git tag named v0.9.

2019-09-20_15.34.18

Edited by Nathan Friend

Merge request reports