diff options
author | Andrew Manning <andrew@reticu.li> | 2016-11-30 22:24:44 -0500 |
---|---|---|
committer | Andrew Manning <andrew@reticu.li> | 2016-11-30 22:24:44 -0500 |
commit | dfaf1164496a7b2ca657f0862d34bab803c06516 (patch) | |
tree | b0c5b522906e82775e8cbcdd152896e9ee201985 /doc/toc.html | |
parent | 41362e2b6ec63ead64af2578e3843e90f45395cb (diff) | |
download | volse-hubzilla-dfaf1164496a7b2ca657f0862d34bab803c06516.tar.gz volse-hubzilla-dfaf1164496a7b2ca657f0862d34bab803c06516.tar.bz2 volse-hubzilla-dfaf1164496a7b2ca657f0862d34bab803c06516.zip |
Add resources and links. Fix bug where table of contents was not generated if URL had a sectionspecified like /help/blah#anchor
Diffstat (limited to 'doc/toc.html')
-rw-r--r-- | doc/toc.html | 2 |
1 files changed, 1 insertions, 1 deletions
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); |