Permalink
Browse files

Fix broken heading links.

  • Loading branch information...
1 parent e0ce55d commit a7f9e620e04991b42157ad231f3ed1414b9ef7ef @demoneaux demoneaux committed Dec 30, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 code.js
View
@@ -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

0 comments on commit a7f9e62

Please sign in to comment.