mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
Fix for in-page anchor links
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
for (var i = 0; i < hs.length; i++) {
|
||||
h = hs[i];
|
||||
if (h.id != null && h.id.length > 0) {
|
||||
h.insertAdjacentHTML('beforeend', '<a href="#' + h.id + '" class="anchorLink">¶</a>')
|
||||
h.insertAdjacentHTML('beforeend', '<a href="' + window.location.href + '#' + h.id + '" class="anchorLink">¶</a>')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user