jgallen23 / toc

Table of Contents Plugin
http://projects.jga.me/toc/
MIT License
531 stars 111 forks source link

toc not aware of page url? #64

Open su-narthur opened 7 years ago

su-narthur commented 7 years ago

I'm adding toc.js to a page at http://localhost:8080/testview?view=dev/styleguide.html, yet the links in the TOC are things like this:

<a href="#toc-atoms">Atoms</a>

Clicking on that link takes me to http://localhost:8080/#toc-atoms in error. I think the links should be like /testview?view=dev/styleguide.html#toc-atoms, instead.

How can this be fixed?

Also, not sure if this is related, but the active state isn't following my scroll, either.