Changing "from" version in diff comparison does not preserve "to" version
Summary
Steps to reproduce
- Go to a merge request with multiple branch revisions (like https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/965) and select the "Changes" tab.
- Where it says "Changes between 'latest version' and 'master'", change "latest version" version to a specific version number (version 16 in this example), and once the page reloads change "master" to another specific version number (version 12 in this example).
- Now attempt to change the first value back to "latest version"
Expected behavior
The comparison should turn into "between latest revision and version 12".
Actual behavior
The comparison turns into "between latest revision and master".
Output of checks
Possible fixes
Look into the links generated within the diff comparison dropdown options and ensure they contain the correct diff_id
and start_sha
query parameters.