Pipeline number and URL do not update when new Pipeline is triggered
Summary
If I have MR webpage open already with completed pipeline, and then if I pushed new changes to same MR (which triggeres new pipeline), I notice that status icon before Pipeline number is changed to Pending or Running but the pipeline number is still old (pointing to old pipeline URL). And pipeline number is updated only if I reload the page.
So if I don't reload the page, and click on URL of Pipeline (I may be under impression that I'll be able to see builds status of latest triggered pipeline), but it takes me to previous pipeline which was already completed/failed.
Steps to reproduce
- Open an MR which you authored, where builds within pipeline have completed (success or failed).
- Push new changes to same MR from your development system.
- Don't reload MR webpage, notice how new pipeline is triggered and status icon is updated to either pending or running.
- Click on Pipeline number URL, it will take you to previously run pipeline that has already completed.
- If you reload MR page before clicking on URL, notice how Pipeline number is updated that is pointing to correct URL.
Expected behavior
When Pipeline status icon is updated without user having to reload the MR page, it should also update Pipeline number that points to new Pipeline page.
Actual behavior
Pipeline number is not updated when status icon updates asynchronously.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com