diff options
-rw-r--r-- | lib/utils/page.js | 2 | ||||
-rw-r--r-- | test/glossary.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js index a83e641..ccf5dfa 100644 --- a/lib/utils/page.js +++ b/lib/utils/page.js @@ -211,7 +211,7 @@ function normalizeHtml(src, options) { term.files = term.files || []; term.files.push(options.navigation[options.input]); } - return "<a href='"+links.toAbsolute("GLOSSARY.html", options.base, options.output)+"#"+term.id+"' class='glossary-term' title='"+term.description+"'>"+match+"</a>"; + return "<a href='"+links.toAbsolute("/GLOSSARY.html", options.base, options.output)+"#"+term.id+"' class='glossary-term' title='"+term.description+"'>"+match+"</a>"; }); }); }); diff --git a/test/glossary.js b/test/glossary.js index da2cbb1..5deb04c 100644 --- a/test/glossary.js +++ b/test/glossary.js @@ -28,7 +28,8 @@ describe('Glossary Generation', function () { var $body = $(".page-inner"); var $a = $("a[href='../GLOSSARY.html#test']"); assert($a.length == 1); - assert($a.text() == "a test text"); + assert($a.text() == "test"); + assert($a.attr("title") == "a test text"); }, done); }); }); |