Anchor links to comments or system notes can break with discussion filters
Summary
If you have filtered discussions in issues or merge requests and follow a link to a comment or system note anchor it may not be visible:
- If it's a comment link, and you previously had “Show history only”, the comment is not shown
- If it's a system note, and you previously had “Show comments only”, the system note is not shown
What is the expected correct behavior?
Ideally, if you're following a link with an anchor to:
- a comment, and you previously had “Show history only”, we need to automatically switch the filtering to “Show all activity” so you can see the comment
- a system note, and you previously had “Show comments only”, we need to automatically switch the filtering to “Show all activity” so you can see the system note
Output of checks
This bug happens on GitLab.com