From dfaf1164496a7b2ca657f0862d34bab803c06516 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Wed, 30 Nov 2016 22:24:44 -0500 Subject: Add resources and links. Fix bug where table of contents was not generated if URL had a sectionspecified like /help/blah#anchor --- doc/toc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/toc.html') diff --git a/doc/toc.html b/doc/toc.html index e0200c1e1..047032437 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -408,7 +408,7 @@ window.console.log($(this).attr('href')); var url = document.createElement('a'); url.href = window.location; - var pageName = url.href.split('/').pop(); + var pageName = url.href.split('/').pop().split('#').shift(); window.console.log('pageName: ' + pageName); var linkName = $(this).attr('href').split('/').pop(); window.console.log('linkName: ' + linkName); -- cgit v1.2.3