Skip to content

Commit

Permalink
Fix broken heading links.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnt4n committed Dec 30, 2015
1 parent e0ce55d commit a7f9e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7f9e62

Please sign in to comment.