Resolve "User-generated permalink IDs collide with GitLab interface"
All threads resolved!
All threads resolved!
Compare changes
@@ -60,9 +60,7 @@
@@ -60,9 +60,7 @@
Prevents ID values automatically generated by headers in GitLab Flavored Markdown from colliding with IDs used elsewhere in the GitLab interface. This can cause confusion when, for instance, a selector looks for a merge request tab with id="pipelines"
and there is a header with the same ID earlier in the DOM.
How this works:
id="user-content_foo"
<a href="#foo">...</a>
hashchange
event is triggered, javascript will automatically search for #user-content_foo
if #foo
cannot be found, and scroll to that position instead.master
(if it does - rebase it please)Closes #22781 (closed)
See also prior attempts to address this issue: #3908 (closed), !2023 (merged), !2024 (merged)