[go: up one dir, main page]

Skip to content

Clicking Overview when viewing a Change on a Merge Request does not update URL correctly

Issue

Clicking "Overview" when viewing a Change in a Merge Request.

/merge_requests/1106/diffs#2542127df7c119729cf53eb741d44b18f8412b37

Clicking Overview, that becomes =>

/merge_requests/1106#2542127df7c119729cf53eb741d44b18f8412b37

This is frustrating because if I refresh to make sure I have the latest comments/pipeline status I will be taken back to viewing that file on the Changes tab.

Proposed Solution

Strip out the #id portion of the url, so when clicking "Overview" the url would be updated to:

/merge_requests/1106

I believe this is the intended behaviour since the "/diffs" portion of the url is removed.
It seems the queryString is not being updated/removed correctly.