Anchors to comments in diffs are broken
Visiting this url does not jump you to comment - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/981/diffs#note_1839107
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Owner
/cc @JobV - Contributor
What is the expected behaviour? The URL points to the diffs subtab where there are no notes reachable by that id, ie: removing
/diffs
fixes the issue.Should we fix the code that generated the wrong URL?
- Owner
@dzaporozhets is this fixed now?
- Author Owner
@sytses no
- Author Owner
@flevour the URL points to existing comment:
- Contributor
@dzaporozhets ok, thanks for the clarification. I had actually looked up the note by id and I had only found it under the
Discussion
tab. Your comment shed some more light on the issue. Basically there are 2 elements with the same id: underDiscussion
and underDiff
. Looking up the element by id will yield only the first occurrence. See - Contributor
This is annoying. If we can fix this in a patch release, that'd be great. cc @rspeicher
- 🚄 Job van der Voort 🚀 Milestone changed to 8.1
Milestone changed to 8.1
- Valery Sizov Reassigned to @vsizov
Reassigned to @vsizov
- Owner
@vsizov Looks like your MR was merged, feel free to close this one.
- Valery Sizov Status changed to closed
Status changed to closed
- username-removed-444 Mentioned in commit pfjason/gitlab-ce@3137d155
Mentioned in commit pfjason/gitlab-ce@3137d155