Clicking label in merge request history goes to wrong page
Steps to reproduce:
Click on a label in the history for a merge request. For example, click the following in !5190 (merged):
Expected behavior:
I expected this to open this page (merge requests with the indicated label), which is the same behavior you get when you click on a label in the fly-out pane of a merge request.
Actual behavior:
The link opened this page (issues with the indicated label).
Impact:
- In repositories with the issue tracker disabled, the link target gives a 404 error.
- For labels which only apply to merge requests (e.g. a code review label), the link target does not make sense (wrong context).