Fix for in-page anchor links

This commit is contained in:
John Mulhausen 2016-09-29 22:56:42 -07:00
parent 42964d8b7d
commit 843b052401
1 changed files with 1 additions and 1 deletions

View File

@ -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>')
}
}