diff --git a/code.js b/code.js index 02a3c27fd4..8206b77c01 100644 --- a/code.js +++ b/code.js @@ -60,7 +60,7 @@ $$('body > section > h1').forEach(function(h1) { $u.element.create('a', { properties: { - href: '#' + id + href: window.location.pathname + '#' + id }, contents: text, inside: h1