Add resources and links. Fix bug where table of contents was not generated if URL had a sectionspecified like /help/blah#anchor
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user